summaryrefslogtreecommitdiff
path: root/tools/lli/lli.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-11-05 19:06:05 +0000
committerJim Grosbach <grosbach@apple.com>2012-11-05 19:06:05 +0000
commit6837232a609fe7b13473606a1c8a18eabfe2df2a (patch)
treed644f239b1467567c537e897f5c074f4cbf48f3c /tools/lli/lli.cpp
parent827b7a070d349737f1d6ff63115e0cbb0c031f9c (diff)
downloadllvm-6837232a609fe7b13473606a1c8a18eabfe2df2a.tar.gz
llvm-6837232a609fe7b13473606a1c8a18eabfe2df2a.tar.bz2
llvm-6837232a609fe7b13473606a1c8a18eabfe2df2a.tar.xz
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
Diffstat (limited to 'tools/lli/lli.cpp')
-rw-r--r--tools/lli/lli.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index 22b48cf63f..9a27a4c941 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -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");