summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
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
commit9523ef0b290f0779f82f086636899fceeae59da4 (patch)
treedb09feabf9aa314fca3c6cc7712ced3bde92a0dc /llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
parent6578a4adee143c046ec77c534f63d5f0536efed8 (diff)
downloadbcm5719-llvm-9523ef0b290f0779f82f086636899fceeae59da4.tar.gz
bcm5719-llvm-9523ef0b290f0779f82f086636899fceeae59da4.zip
[llvm-exegesis][NFC] Simplify BenchmarkRunner ctor.
llvm-svn: 335456
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp3
1 files changed, 1 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud