diff options
author | Matthias Braun <matze@braunis.de> | 2017-10-12 22:28:54 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2017-10-12 22:28:54 +0000 |
commit | a063107f8d12831004583ab9c1fd70f84806a563 (patch) | |
tree | 0cd8201b19e2d5322836d4c6d396da3542d99ce1 /unittests/CodeGen/MachineInstrTest.cpp | |
parent | 8520e4812b6acaa0e24d5e633c0c882e19c6afa9 (diff) |
TargetMachine: Merge TargetMachine and LLVMTargetMachine
Merge LLVMTargetMachine into TargetMachine.
- There is no in-tree target anymore that just implements TargetMachine
but not LLVMTargetMachine.
- It should still be possible to stub out all the various functions in
case a target does not want to use lib/CodeGen
- This simplifies the code and avoids methods ending up in the wrong
interface.
Differential Revision: https://reviews.llvm.org/D38489
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315633 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/CodeGen/MachineInstrTest.cpp')
-rw-r--r-- | unittests/CodeGen/MachineInstrTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/CodeGen/MachineInstrTest.cpp b/unittests/CodeGen/MachineInstrTest.cpp index 89041e2ab22..bd61bf056ec 100644 --- a/unittests/CodeGen/MachineInstrTest.cpp +++ b/unittests/CodeGen/MachineInstrTest.cpp @@ -62,11 +62,11 @@ private: TargetInstrInfo TII; }; -class BogusTargetMachine : public LLVMTargetMachine { +class BogusTargetMachine : public TargetMachine { public: BogusTargetMachine() - : LLVMTargetMachine(Target(), "", Triple(""), "", "", TargetOptions(), - Reloc::Static, CodeModel::Small, CodeGenOpt::Default), + : TargetMachine(Target(), "", Triple(""), "", "", TargetOptions(), + Reloc::Static, CodeModel::Small, CodeGenOpt::Default), ST(*this) {} ~BogusTargetMachine() override {} |