OSDN Git Service

[llvm-exegesis][NFC] Simplify BenchmarkRunner ctor.
authorClement Courbet <courbet@google.com>
Mon, 25 Jun 2018 11:44:29 +0000 (11:44 +0000)
committerClement Courbet <courbet@google.com>
Mon, 25 Jun 2018 11:44:29 +0000 (11:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335456 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-exegesis/lib/BenchmarkRunner.cpp

index 59f954b..063d72e 100644 (file)
@@ -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;