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.

llvm-svn: 167392
This commit is contained in:
Jim Grosbach 2012-11-05 19:06:05 +00:00
parent 7c3a53c0b2
commit 2cce3f91f8
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 ) if( LLVM_USE_OPROFILE )
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS

View File

@ -19,4 +19,4 @@
type = Tool type = Tool
name = lli name = lli
parent = Tools 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 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 # If Intel JIT Events support is confiured, link against the LLVM Intel JIT
# Events interface library # Events interface library

View File

@ -508,6 +508,7 @@ int main(int argc, char **argv, char * const *envp) {
// usable by the JIT. // usable by the JIT.
InitializeNativeTarget(); InitializeNativeTarget();
InitializeNativeTargetAsmPrinter(); InitializeNativeTargetAsmPrinter();
InitializeNativeTargetAsmParser();
cl::ParseCommandLineOptions(argc, argv, cl::ParseCommandLineOptions(argc, argv,
"llvm interpreter & dynamic compiler\n"); "llvm interpreter & dynamic compiler\n");