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 | 62c02920b6f893b6e6b111a2583dcf772007889f (patch) | |
tree | aa2860ef43439172ef9537dce17a8495aca192ad /lib/Target/CppBackend/CPPBackend.cpp | |
parent | 62f1433c25004a1c53c4a0f1b2f5b3c101343ef4 (diff) | |
download | external_llvm-62c02920b6f893b6e6b111a2583dcf772007889f.tar.gz external_llvm-62c02920b6f893b6e6b111a2583dcf772007889f.tar.bz2 external_llvm-62c02920b6f893b6e6b111a2583dcf772007889f.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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index e739b26bc5..28345b2937 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -2007,11 +2007,11 @@ char CppWriter::ID = 0; // External Interface declaration //===----------------------------------------------------------------------===// -bool CPPTargetMachine::addPassesToEmitWholeFile(PassManager &PM, - formatted_raw_ostream &o, - CodeGenFileType FileType, - CodeGenOpt::Level OptLevel, - bool DisableVerify) { +bool CPPTargetMachine::addPassesToEmitFile(PassManagerBase &PM, + formatted_raw_ostream &o, + CodeGenFileType FileType, + CodeGenOpt::Level OptLevel, + bool DisableVerify) { if (FileType != TargetMachine::CGFT_AssemblyFile) return true; PM.add(new CppWriter(o)); return false; |