mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
827b7a070d
commit
6837232a60
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user