aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-05-15 12:27:36 +0000
committerClement Courbet <courbet@google.com>2018-05-15 12:27:36 +0000
commit7b19ffcc015afe3fd76a3731a03bf18da48c59a7 (patch)
tree95dda199de45d3c3ebbee6e921ef643d0043006a
parent37f0ca0328aa2571a05d530f35f5e2ef7cbb9498 (diff)
downloadllvm-7b19ffcc015afe3fd76a3731a03bf18da48c59a7.zip
llvm-7b19ffcc015afe3fd76a3731a03bf18da48c59a7.tar.gz
llvm-7b19ffcc015afe3fd76a3731a03bf18da48c59a7.tar.bz2
Fix r332344: only the native target is linked.
llvm-svn: 332345
-rw-r--r--llvm/tools/llvm-exegesis/llvm-exegesis.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
index fff1877..623d301 100644
--- a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
+++ b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
@@ -135,7 +135,10 @@ void analysisMain() {
// FIXME: Check that all points have the same triple/cpu.
// FIXME: Merge points from several runs (latency and uops).
- llvm::InitializeAllTargets();
+ //llvm::InitializeAllTargets();
+ llvm::InitializeNativeTarget();
+ llvm::InitializeNativeTargetAsmPrinter();
+
std::string Error;
const auto *TheTarget =
llvm::TargetRegistry::lookupTarget(Points[0].LLVMTriple, Error);