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.