diff options
| author | Eric Christopher <echristo@gmail.com> | 2015-03-21 04:22:23 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2015-03-21 04:22:23 +0000 |
| commit | 4d0f35a901efd6f02d7583b08b7741b217be15e5 (patch) | |
| tree | abfae00418b65855bf2e16d7a460b3e7baef681f /llvm/lib/Target/CppBackend | |
| parent | faad6205696fa07ef9a51bfc1f8e667a6d9005cd (diff) | |
| download | bcm5719-llvm-4d0f35a901efd6f02d7583b08b7741b217be15e5.tar.gz bcm5719-llvm-4d0f35a901efd6f02d7583b08b7741b217be15e5.zip | |
Remove the target independent TargetMachine::getSubtarget and
TargetMachine::getSubtargetImpl routines.
This keeps the target independent code free of bare subtarget
calls while the remainder of the backends are migrated, or not
if they don't wish to support per-function subtargets as would
be needed for function multiversioning or LTO of disparate
cpu subarchitecture types, e.g.
clang -msse4.2 -c foo.c -emit-llvm -o foo.bc
clang -c bar.c -emit-llvm -o bar.bc
llvm-link foo.bc bar.bc -o baz.bc
llc baz.bc
and get appropriate code for what the command lines requested.
llvm-svn: 232885
Diffstat (limited to 'llvm/lib/Target/CppBackend')
| -rw-r--r-- | llvm/lib/Target/CppBackend/CPPTargetMachine.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPTargetMachine.h b/llvm/lib/Target/CppBackend/CPPTargetMachine.h index 96d832df170..678a932cb28 100644 --- a/llvm/lib/Target/CppBackend/CPPTargetMachine.h +++ b/llvm/lib/Target/CppBackend/CPPTargetMachine.h @@ -22,20 +22,13 @@ namespace llvm { class formatted_raw_ostream; -class CPPSubtarget : public TargetSubtargetInfo { -}; - struct CPPTargetMachine : public TargetMachine { CPPTargetMachine(const Target &T, StringRef TT, StringRef CPU, StringRef FS, const TargetOptions &Options, Reloc::Model RM, CodeModel::Model CM, CodeGenOpt::Level OL) - : TargetMachine(T, "", TT, CPU, FS, Options), Subtarget() {} - -private: - CPPSubtarget Subtarget; + : TargetMachine(T, "", TT, CPU, FS, Options) {} public: - const CPPSubtarget *getSubtargetImpl() const override { return &Subtarget; } bool addPassesToEmitFile(PassManagerBase &PM, formatted_raw_ostream &Out, CodeGenFileType FileType, bool DisableVerify, AnalysisID StartAfter, |

