1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Fix Kaleidoscope tuto: ExecutionEngine->getDataLayout() returns a ref

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 242416
This commit is contained in:
Mehdi Amini 2015-07-16 16:47:18 +00:00
parent b1449ffcc8
commit fa35697f02
5 changed files with 5 additions and 5 deletions

View File

@ -560,7 +560,7 @@ void *MCJITHelper::getPointerToFunction(Function *F) {
// Set up the optimizer pipeline. Start with registering info about how the // Set up the optimizer pipeline. Start with registering info about how the
// target lays out data structures. // target lays out data structures.
OpenModule->setDataLayout(*NewEngine->getDataLayout()); OpenModule->setDataLayout(NewEngine->getDataLayout());
// Provide basic AliasAnalysis support for GVN. // Provide basic AliasAnalysis support for GVN.
FPM->add(createBasicAliasAnalysisPass()); FPM->add(createBasicAliasAnalysisPass());
// Promote allocas to registers. // Promote allocas to registers.

View File

@ -913,7 +913,7 @@ int main() {
// Set up the optimizer pipeline. Start with registering info about how the // Set up the optimizer pipeline. Start with registering info about how the
// target lays out data structures. // target lays out data structures.
TheModule->setDataLayout(*TheExecutionEngine->getDataLayout()); TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
// Provide basic AliasAnalysis support for GVN. // Provide basic AliasAnalysis support for GVN.
OurFPM.add(createBasicAliasAnalysisPass()); OurFPM.add(createBasicAliasAnalysisPass());
// Do simple "peephole" optimizations and bit-twiddling optzns. // Do simple "peephole" optimizations and bit-twiddling optzns.

View File

@ -1034,7 +1034,7 @@ int main() {
// Set up the optimizer pipeline. Start with registering info about how the // Set up the optimizer pipeline. Start with registering info about how the
// target lays out data structures. // target lays out data structures.
TheModule->setDataLayout(*TheExecutionEngine->getDataLayout()); TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
// Provide basic AliasAnalysis support for GVN. // Provide basic AliasAnalysis support for GVN.
OurFPM.add(createBasicAliasAnalysisPass()); OurFPM.add(createBasicAliasAnalysisPass());
// Do simple "peephole" optimizations and bit-twiddling optzns. // Do simple "peephole" optimizations and bit-twiddling optzns.

View File

@ -1211,7 +1211,7 @@ int main() {
// Set up the optimizer pipeline. Start with registering info about how the // Set up the optimizer pipeline. Start with registering info about how the
// target lays out data structures. // target lays out data structures.
TheModule->setDataLayout(*TheExecutionEngine->getDataLayout()); TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
// Provide basic AliasAnalysis support for GVN. // Provide basic AliasAnalysis support for GVN.
OurFPM.add(createBasicAliasAnalysisPass()); OurFPM.add(createBasicAliasAnalysisPass());
// Promote allocas to registers. // Promote allocas to registers.

View File

@ -1462,7 +1462,7 @@ int main() {
// Set up the optimizer pipeline. Start with registering info about how the // Set up the optimizer pipeline. Start with registering info about how the
// target lays out data structures. // target lays out data structures.
TheModule->setDataLayout(*TheExecutionEngine->getDataLayout()); TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
#if 0 #if 0
// Provide basic AliasAnalysis support for GVN. // Provide basic AliasAnalysis support for GVN.
OurFPM.add(createBasicAliasAnalysisPass()); OurFPM.add(createBasicAliasAnalysisPass());