<div dir="ltr">Thanks for fixing this Mehdi!<div><br></div><div>- Lang.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 16, 2015 at 9:47 AM, Mehdi Amini <span dir="ltr"><<a href="mailto:mehdi.amini@apple.com" target="_blank">mehdi.amini@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: mehdi_amini<br>
Date: Thu Jul 16 11:47:18 2015<br>
New Revision: 242416<br>
<br>
URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject-3Frev-3D242416-26view-3Drev&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=LUDvBZz_myKhfCUOC-9feCsMy7yD_aZo3_GBBqGyMb0&s=CHOCWhAZLKv7shGPGKyyish5sbEtlkWXtREmQW9dl50&e=" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=242416&view=rev</a><br>
Log:<br>
Fix Kaleidoscope tuto: ExecutionEngine->getDataLayout() returns a ref<br>
<br>
From: Mehdi Amini <<a href="mailto:mehdi.amini@apple.com">mehdi.amini@apple.com</a>><br>
<br>
Modified:<br>
    llvm/trunk/examples/Kaleidoscope/Chapter4/toy.cpp<br>
    llvm/trunk/examples/Kaleidoscope/Chapter5/toy.cpp<br>
    llvm/trunk/examples/Kaleidoscope/Chapter6/toy.cpp<br>
    llvm/trunk/examples/Kaleidoscope/Chapter7/toy.cpp<br>
    llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp<br>
<br>
Modified: llvm/trunk/examples/Kaleidoscope/Chapter4/toy.cpp<br>
URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_llvm_trunk_examples_Kaleidoscope_Chapter4_toy.cpp-3Frev-3D242416-26r1-3D242415-26r2-3D242416-26view-3Ddiff&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=LUDvBZz_myKhfCUOC-9feCsMy7yD_aZo3_GBBqGyMb0&s=2sfsPfeQUDwQ6Bq_r-rPOaFLqkF__avuPUgI9d8BuS4&e=" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter4/toy.cpp?rev=242416&r1=242415&r2=242416&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/examples/Kaleidoscope/Chapter4/toy.cpp (original)<br>
+++ llvm/trunk/examples/Kaleidoscope/Chapter4/toy.cpp Thu Jul 16 11:47:18 2015<br>
@@ -560,7 +560,7 @@ void *MCJITHelper::getPointerToFunction(<br>
<br>
     // Set up the optimizer pipeline.  Start with registering info about how the<br>
     // target lays out data structures.<br>
-    OpenModule->setDataLayout(*NewEngine->getDataLayout());<br>
+    OpenModule->setDataLayout(NewEngine->getDataLayout());<br>
     // Provide basic AliasAnalysis support for GVN.<br>
     FPM->add(createBasicAliasAnalysisPass());<br>
     // Promote allocas to registers.<br>
<br>
Modified: llvm/trunk/examples/Kaleidoscope/Chapter5/toy.cpp<br>
URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_llvm_trunk_examples_Kaleidoscope_Chapter5_toy.cpp-3Frev-3D242416-26r1-3D242415-26r2-3D242416-26view-3Ddiff&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=LUDvBZz_myKhfCUOC-9feCsMy7yD_aZo3_GBBqGyMb0&s=J_yEviFQAB3UR2762tkRu5Go53K_XpyYDqFwhQUcfzQ&e=" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter5/toy.cpp?rev=242416&r1=242415&r2=242416&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/examples/Kaleidoscope/Chapter5/toy.cpp (original)<br>
+++ llvm/trunk/examples/Kaleidoscope/Chapter5/toy.cpp Thu Jul 16 11:47:18 2015<br>
@@ -913,7 +913,7 @@ int main() {<br>
<br>
   // Set up the optimizer pipeline.  Start with registering info about how the<br>
   // target lays out data structures.<br>
-  TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());<br>
+  TheModule->setDataLayout(TheExecutionEngine->getDataLayout());<br>
   // Provide basic AliasAnalysis support for GVN.<br>
   OurFPM.add(createBasicAliasAnalysisPass());<br>
   // Do simple "peephole" optimizations and bit-twiddling optzns.<br>
<br>
Modified: llvm/trunk/examples/Kaleidoscope/Chapter6/toy.cpp<br>
URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_llvm_trunk_examples_Kaleidoscope_Chapter6_toy.cpp-3Frev-3D242416-26r1-3D242415-26r2-3D242416-26view-3Ddiff&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=LUDvBZz_myKhfCUOC-9feCsMy7yD_aZo3_GBBqGyMb0&s=davKLhhBVgTrAurphLB36Bl9s_eNLqq8wJlTnudgGLs&e=" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter6/toy.cpp?rev=242416&r1=242415&r2=242416&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/examples/Kaleidoscope/Chapter6/toy.cpp (original)<br>
+++ llvm/trunk/examples/Kaleidoscope/Chapter6/toy.cpp Thu Jul 16 11:47:18 2015<br>
@@ -1034,7 +1034,7 @@ int main() {<br>
<br>
   // Set up the optimizer pipeline.  Start with registering info about how the<br>
   // target lays out data structures.<br>
-  TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());<br>
+  TheModule->setDataLayout(TheExecutionEngine->getDataLayout());<br>
   // Provide basic AliasAnalysis support for GVN.<br>
   OurFPM.add(createBasicAliasAnalysisPass());<br>
   // Do simple "peephole" optimizations and bit-twiddling optzns.<br>
<br>
Modified: llvm/trunk/examples/Kaleidoscope/Chapter7/toy.cpp<br>
URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_llvm_trunk_examples_Kaleidoscope_Chapter7_toy.cpp-3Frev-3D242416-26r1-3D242415-26r2-3D242416-26view-3Ddiff&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=LUDvBZz_myKhfCUOC-9feCsMy7yD_aZo3_GBBqGyMb0&s=GV0X70IzAKYuzMj9HF6tDdek_Z_6WNJYnIABVweZlVU&e=" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter7/toy.cpp?rev=242416&r1=242415&r2=242416&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/examples/Kaleidoscope/Chapter7/toy.cpp (original)<br>
+++ llvm/trunk/examples/Kaleidoscope/Chapter7/toy.cpp Thu Jul 16 11:47:18 2015<br>
@@ -1211,7 +1211,7 @@ int main() {<br>
<br>
   // Set up the optimizer pipeline.  Start with registering info about how the<br>
   // target lays out data structures.<br>
-  TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());<br>
+  TheModule->setDataLayout(TheExecutionEngine->getDataLayout());<br>
   // Provide basic AliasAnalysis support for GVN.<br>
   OurFPM.add(createBasicAliasAnalysisPass());<br>
   // Promote allocas to registers.<br>
<br>
Modified: llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp<br>
URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_llvm_trunk_examples_Kaleidoscope_Chapter8_toy.cpp-3Frev-3D242416-26r1-3D242415-26r2-3D242416-26view-3Ddiff&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=LUDvBZz_myKhfCUOC-9feCsMy7yD_aZo3_GBBqGyMb0&s=-2rHJzGUho7QnWm-VtD3SpUYFw5Ei9I_CjMPjDbrpQo&e=" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp?rev=242416&r1=242415&r2=242416&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp (original)<br>
+++ llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp Thu Jul 16 11:47:18 2015<br>
@@ -1462,7 +1462,7 @@ int main() {<br>
<br>
   // Set up the optimizer pipeline.  Start with registering info about how the<br>
   // target lays out data structures.<br>
-  TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());<br>
+  TheModule->setDataLayout(TheExecutionEngine->getDataLayout());<br>
 #if 0<br>
   // Provide basic AliasAnalysis support for GVN.<br>
   OurFPM.add(createBasicAliasAnalysisPass());<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>