lli: Initialize the native asm parser for inline assembly.
authorJim Grosbach <grosbach@apple.com>
Mon, 5 Nov 2012 19:06:05 +0000 (19:06 +0000)
committerJim Grosbach <grosbach@apple.com>
Mon, 5 Nov 2012 19:06:05 +0000 (19:06 +0000)
MCJIT supports inline assembly, but requires the asm parser to do so.
Make sure to link it in and initialize it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167392 91177308-0d34-0410-b5e6-96231b3b80d8

tools/lli/CMakeLists.txt
tools/lli/LLVMBuild.txt
tools/lli/Makefile
tools/lli/lli.cpp

index a9c7adf97842d2a55f0cbb2a991b53cdf57730b1..ed479f5323dc5abc58339ea1d4f83dc7c95582c3 100644 (file)
@@ -1,5 +1,5 @@
 
-set(LLVM_LINK_COMPONENTS mcjit jit interpreter nativecodegen bitreader asmparser selectiondag)
+set(LLVM_LINK_COMPONENTS mcjit jit interpreter nativecodegen bitreader asmparser selectiondag native)
 
 if( LLVM_USE_OPROFILE )
   set(LLVM_LINK_COMPONENTS
index 4eb82bd9e1c56613ec980528d2206dc6bc9ddf41..36ceb39b127070e9a423aae3781d3d9c959cb90c 100644 (file)
@@ -19,4 +19,4 @@
 type = Tool
 name = lli
 parent = Tools
-required_libraries = AsmParser BitReader Interpreter JIT MCJIT NativeCodeGen SelectionDAG
+required_libraries = AsmParser BitReader Interpreter JIT MCJIT NativeCodeGen SelectionDAG Native
index 100fc2e415aae7af6e53c1cae7230b1c2829b9d9..31f3ab8a1e693d6ea7d33f5d3a900859f19548f0 100644 (file)
@@ -12,7 +12,7 @@ TOOLNAME := lli
 
 include $(LEVEL)/Makefile.config
 
-LINK_COMPONENTS := mcjit jit interpreter nativecodegen bitreader asmparser selectiondag
+LINK_COMPONENTS := mcjit jit interpreter nativecodegen bitreader asmparser selectiondag native
 
 # If Intel JIT Events support is confiured, link against the LLVM Intel JIT
 # Events interface library
index 22b48cf63f4c15a06cbcfc6b065aae3b37141963..9a27a4c94110a5d938194020447d1984c84b5881 100644 (file)
@@ -508,6 +508,7 @@ int main(int argc, char **argv, char * const *envp) {
   // usable by the JIT.
   InitializeNativeTarget();
   InitializeNativeTargetAsmPrinter();
+  InitializeNativeTargetAsmParser();
 
   cl::ParseCommandLineOptions(argc, argv,
                               "llvm interpreter & dynamic compiler\n");