From 7b19ffcc015afe3fd76a3731a03bf18da48c59a7 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. llvm-svn: 332345 --- llvm/tools/llvm-exegesis/llvm-exegesis.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp index fff18776eec4..623d3011dfb8 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);