lli: Initialize the native asm parser for inline assembly.

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
This commit is contained in:
Jim Grosbach 2012-11-05 19:06:05 +00:00
parent 827b7a070d
commit 6837232a60
4 changed files with 4 additions and 3 deletions

View 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

View 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

View 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

View 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");