Fix r332344: only the native target is linked.

llvm-svn: 332345
This commit is contained in:
Clement Courbet 2018-05-15 12:27:36 +00:00
parent 37f0ca0328
commit 7b19ffcc01
1 changed files with 4 additions and 1 deletions

View File

@ -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);