From 9523ef0b290f0779f82f086636899fceeae59da4 Mon Sep 17 00:00:00 2001 From: Clement Courbet Date: Mon, 25 Jun 2018 11:44:29 +0000 Subject: [llvm-exegesis][NFC] Simplify BenchmarkRunner ctor. llvm-svn: 335456 --- llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp') diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp index 59f954b8e93..063d72e2911 100644 --- a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp +++ b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp @@ -31,8 +31,7 @@ BenchmarkRunner::InstructionFilter::~InstructionFilter() = default; BenchmarkRunner::BenchmarkRunner(const LLVMState &State) : State(State), MCInstrInfo(State.getInstrInfo()), MCRegisterInfo(State.getRegInfo()), - RATC(MCRegisterInfo, - getFunctionReservedRegs(*State.createTargetMachine())) {} + RATC(MCRegisterInfo, getFunctionReservedRegs(State.getTargetMachine())) {} BenchmarkRunner::~BenchmarkRunner() = default; -- cgit v1.2.3