[PATCH] Fix flags for compiling examples/Kaleidoscope/MCJIT/initial
    j medley 
    mjllvmbugzilla at gmail.com
       
    Mon Jul 21 15:06:38 PDT 2014
    
    
  
Hi rengolin,
This patch contains minor changes I made to get examples/Kaleidoscope/MCJIT/initial/toy.cpp to compile, discussed in the following bug report:
http://llvm.org/bugs/show_bug.cgi?id=20329
http://reviews.llvm.org/D4607
Files:
  examples/Kaleidoscope/MCJIT/initial/Makefile
  examples/Kaleidoscope/MCJIT/initial/toy.cpp
Index: examples/Kaleidoscope/MCJIT/initial/Makefile
===================================================================
--- examples/Kaleidoscope/MCJIT/initial/Makefile
+++ examples/Kaleidoscope/MCJIT/initial/Makefile
@@ -1,4 +1,3 @@
 all: toy-mcjit
-
 toy-mcjit : toy.cpp
-	clang++ toy.cpp -g -O3 -rdynamic -fno-rtti `llvm-config --cppflags --ldflags --libs core mcjit native` -o toy-mcjit
+	clang++ toy.cpp -g -O3 -rdynamic -fno-rtti `llvm-config --cxxflags --ldflags --libs core mcjit native` -pthread -ldl -lcurses -o toy-mcjit
Index: examples/Kaleidoscope/MCJIT/initial/toy.cpp
===================================================================
--- examples/Kaleidoscope/MCJIT/initial/toy.cpp
+++ examples/Kaleidoscope/MCJIT/initial/toy.cpp
@@ -791,7 +791,7 @@
 
     // Set up the optimizer pipeline.  Start with registering info about how the
     // target lays out data structures.
-    FPM->add(new DataLayout(*NewEngine->getDataLayout()));
+    FPM->add(new DataLayoutPass(*NewEngine->getDataLayout()));
     // Provide basic AliasAnalysis support for GVN.
     FPM->add(createBasicAliasAnalysisPass());
     // Promote allocas to registers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4607.11720.patch
Type: text/x-patch
Size: 1154 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140721/ee3af0b8/attachment.bin>
    
    
More information about the llvm-commits
mailing list