aboutsummaryrefslogtreecommitdiff
path: root/tools/llvm-exegesis
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-06-25 11:44:29 +0000
committerClement Courbet <courbet@google.com>2018-06-25 11:44:29 +0000
commit512d410a6b9728649602d79acc80fdd9d9d60443 (patch)
treeeab4ea945c2ab8c625b0b92e6a05a73693770073 /tools/llvm-exegesis
parent4e7cfd69f5c984a81128f24bc98c701f50b31a8e (diff)
[llvm-exegesis][NFC] Simplify BenchmarkRunner ctor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-exegesis')
-rw-r--r--tools/llvm-exegesis/lib/BenchmarkRunner.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/llvm-exegesis/lib/BenchmarkRunner.cpp b/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
index 59f954b8e93..063d72e2911 100644
--- a/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
+++ b/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;