diff options
author | Dan Gohman <gohman@apple.com> | 2010-05-11 19:57:55 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-05-11 19:57:55 +0000 |
commit | 99dca4fde746eb76253e737cca166261c767412d (patch) | |
tree | aa2860ef43439172ef9537dce17a8495aca192ad /lib/Target/CppBackend/CPPTargetMachine.h | |
parent | 038df88e28b88dfea7e95d6331ffcdc03e71d8e4 (diff) | |
download | external_llvm-99dca4fde746eb76253e737cca166261c767412d.zip external_llvm-99dca4fde746eb76253e737cca166261c767412d.tar.gz external_llvm-99dca4fde746eb76253e737cca166261c767412d.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CppBackend/CPPTargetMachine.h')
-rw-r--r-- | lib/Target/CppBackend/CPPTargetMachine.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/Target/CppBackend/CPPTargetMachine.h b/lib/Target/CppBackend/CPPTargetMachine.h index b7aae91..e42166e 100644 --- a/lib/Target/CppBackend/CPPTargetMachine.h +++ b/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; } }; |