summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/CodeGen/MachineInstrTest.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-12-15 22:22:46 +0000
committerMatthias Braun <matze@braunis.de>2017-12-15 22:22:46 +0000
commit4684033a2f991279187a4db8331fc514ac80293d (patch)
tree6977e0bde666459a929919a64bb21d776587cbef /llvm/unittests/CodeGen/MachineInstrTest.cpp
parent89488fffddc65ae22d62608adb506085df5f6daf (diff)
downloadbcm5719-llvm-4684033a2f991279187a4db8331fc514ac80293d.tar.gz
bcm5719-llvm-4684033a2f991279187a4db8331fc514ac80293d.zip
MachineFunction: Slight refactoring; NFC
Slight cleanup/refactor in preparation for upcoming commit. llvm-svn: 320882
Diffstat (limited to 'llvm/unittests/CodeGen/MachineInstrTest.cpp')
-rw-r--r--llvm/unittests/CodeGen/MachineInstrTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/CodeGen/MachineInstrTest.cpp b/llvm/unittests/CodeGen/MachineInstrTest.cpp
index fe8e792412f..aca640ebcf3 100644
--- a/llvm/unittests/CodeGen/MachineInstrTest.cpp
+++ b/llvm/unittests/CodeGen/MachineInstrTest.cpp
@@ -91,8 +91,9 @@ std::unique_ptr<MachineFunction> createMachineFunction() {
auto TM = createTargetMachine();
unsigned FunctionNum = 42;
MachineModuleInfo MMI(TM.get());
+ const TargetSubtargetInfo &STI = *TM->getSubtargetImpl(*F);
- return llvm::make_unique<MachineFunction>(F, *TM, FunctionNum, MMI);
+ return llvm::make_unique<MachineFunction>(*F, *TM, STI, FunctionNum, MMI);
}
// This test makes sure that MachineInstr::isIdenticalTo handles Defs correctly
OpenPOWER on IntegriCloud