summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CppBackend/CPPTargetMachine.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-11 19:57:55 +0000
committerDan Gohman <gohman@apple.com>2010-05-11 19:57:55 +0000
commit4cfccb801c7c6e13807703e1ef54ec387c6d512a (patch)
tree5e9c64950b81a6f9769984589762204e26fb341d /llvm/lib/Target/CppBackend/CPPTargetMachine.h
parent180e1d7f561fa529207cd8f6aae9d59e670d0262 (diff)
downloadbcm5719-llvm-4cfccb801c7c6e13807703e1ef54ec387c6d512a.tar.gz
bcm5719-llvm-4cfccb801c7c6e13807703e1ef54ec387c6d512a.zip
Remove the "WantsWholeFile" concept, as it's no longer needed. CBE
and the others use the regular addPassesToEmitFile hook now, and llc no longer needs a bunch of redundant code to handle the whole-file case. llvm-svn: 103492
Diffstat (limited to 'llvm/lib/Target/CppBackend/CPPTargetMachine.h')
-rw-r--r--llvm/lib/Target/CppBackend/CPPTargetMachine.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPTargetMachine.h b/llvm/lib/Target/CppBackend/CPPTargetMachine.h
index b7aae917ace..e42166e0558 100644
--- a/llvm/lib/Target/CppBackend/CPPTargetMachine.h
+++ b/llvm/lib/Target/CppBackend/CPPTargetMachine.h
@@ -26,12 +26,11 @@ struct CPPTargetMachine : public TargetMachine {
const std::string &FS)
: TargetMachine(T) {}
- virtual bool WantsWholeFile() const { return true; }
- virtual bool addPassesToEmitWholeFile(PassManager &PM,
- formatted_raw_ostream &Out,
- CodeGenFileType FileType,
- CodeGenOpt::Level OptLevel,
- bool DisableVerify);
+ virtual bool addPassesToEmitFile(PassManagerBase &PM,
+ formatted_raw_ostream &Out,
+ CodeGenFileType FileType,
+ CodeGenOpt::Level OptLevel,
+ bool DisableVerify);
virtual const TargetData *getTargetData() const { return 0; }
};
OpenPOWER on IntegriCloud