summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2019-10-01 13:02:48 +0000
committerMichal Gorny <mgorny@gentoo.org>2019-10-01 13:02:48 +0000
commitf488cbdcd861d2d02b3d69ebd7a260be1a57f850 (patch)
tree024541c122906bdbaf71707483292090ac76f6df /llvm/tools/llvm-exegesis
parentef7990a88afd67df0d3bdefa813c202d92da8e0e (diff)
downloadbcm5719-llvm-f488cbdcd861d2d02b3d69ebd7a260be1a57f850.tar.gz
bcm5719-llvm-f488cbdcd861d2d02b3d69ebd7a260be1a57f850.zip
[llvm-exegesis/lib] Fix missing linkage to MCParser
Otherwise, shared-lib build fails with: lib64/libLLVMExegesis.a(SnippetFile.cpp.o): In function `llvm::exegesis::readSnippets(llvm::exegesis::LLVMState const&, llvm::StringRef)': SnippetFile.cpp:(.text._ZN4llvm8exegesis12readSnippetsERKNS0_9LLVMStateENS_9StringRefE+0x31f): undefined reference to `llvm::createMCAsmParser(llvm::SourceMgr&, llvm::MCContext&, llvm::MCStreamer&, llvm::MCAsmInfo const&, unsigned int)' SnippetFile.cpp:(.text._ZN4llvm8exegesis12readSnippetsERKNS0_9LLVMStateENS_9StringRefE+0x41c): undefined reference to `llvm::MCAsmParser::setTargetParser(llvm::MCTargetAsmParser&)' collect2: error: ld returned 1 exit status llvm-svn: 373332
Diffstat (limited to 'llvm/tools/llvm-exegesis')
-rw-r--r--llvm/tools/llvm-exegesis/lib/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/CMakeLists.txt b/llvm/tools/llvm-exegesis/lib/CMakeLists.txt
index 03a5f717dad..3b58df7db7e 100644
--- a/llvm/tools/llvm-exegesis/lib/CMakeLists.txt
+++ b/llvm/tools/llvm-exegesis/lib/CMakeLists.txt
@@ -47,6 +47,7 @@ llvm_map_components_to_libnames(libs
MC
MCDisassembler
MCJIT
+ MCParser
Object
ObjectYAML
Support
OpenPOWER on IntegriCloud