From ea4e63b33c18a108ce98f01e3a2394f0cde751b2 Mon Sep 17 00:00:00 2001 From: Clement Courbet Date: Tue, 15 May 2018 12:27:36 +0000 Subject: [PATCH] Fix r332344: only the native target is linked. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332345 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-exegesis/llvm-exegesis.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/llvm-exegesis/llvm-exegesis.cpp b/tools/llvm-exegesis/llvm-exegesis.cpp index fff18776eec..623d3011dfb 100644 --- a/tools/llvm-exegesis/llvm-exegesis.cpp +++ b/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); -- 2.11.0