mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +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:
parent
b1449ffcc8
commit
fa35697f02
@ -560,7 +560,7 @@ void *MCJITHelper::getPointerToFunction(Function *F) {
|
||||
|
||||
// Set up the optimizer pipeline. Start with registering info about how the
|
||||
// target lays out data structures.
|
||||
OpenModule->setDataLayout(*NewEngine->getDataLayout());
|
||||
OpenModule->setDataLayout(NewEngine->getDataLayout());
|
||||
// Provide basic AliasAnalysis support for GVN.
|
||||
FPM->add(createBasicAliasAnalysisPass());
|
||||
// Promote allocas to registers.
|
||||
|
@ -913,7 +913,7 @@ int main() {
|
||||
|
||||
// Set up the optimizer pipeline. Start with registering info about how the
|
||||
// target lays out data structures.
|
||||
TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());
|
||||
TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
|
||||
// Provide basic AliasAnalysis support for GVN.
|
||||
OurFPM.add(createBasicAliasAnalysisPass());
|
||||
// Do simple "peephole" optimizations and bit-twiddling optzns.
|
||||
|
@ -1034,7 +1034,7 @@ int main() {
|
||||
|
||||
// Set up the optimizer pipeline. Start with registering info about how the
|
||||
// target lays out data structures.
|
||||
TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());
|
||||
TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
|
||||
// Provide basic AliasAnalysis support for GVN.
|
||||
OurFPM.add(createBasicAliasAnalysisPass());
|
||||
// Do simple "peephole" optimizations and bit-twiddling optzns.
|
||||
|
@ -1211,7 +1211,7 @@ int main() {
|
||||
|
||||
// Set up the optimizer pipeline. Start with registering info about how the
|
||||
// target lays out data structures.
|
||||
TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());
|
||||
TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
|
||||
// Provide basic AliasAnalysis support for GVN.
|
||||
OurFPM.add(createBasicAliasAnalysisPass());
|
||||
// Promote allocas to registers.
|
||||
|
@ -1462,7 +1462,7 @@ int main() {
|
||||
|
||||
// Set up the optimizer pipeline. Start with registering info about how the
|
||||
// target lays out data structures.
|
||||
TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());
|
||||
TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
|
||||
#if 0
|
||||
// Provide basic AliasAnalysis support for GVN.
|
||||
OurFPM.add(createBasicAliasAnalysisPass());
|
||||
|
Loading…
Reference in New Issue
Block a user