diff options
author | Chris Lattner <sabre@nondot.org> | 2005-06-25 02:48:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-06-25 02:48:37 +0000 |
commit | 0431c96cec9576611f06c513d6adcab0f950c18c (patch) | |
tree | f171a42cc9f00ad1bf9f6d7468156123017fce64 /lib/Target/SparcV9/SparcV9TargetMachine.cpp | |
parent | 11f14c8be0946a8fb95189156ff1d64a01ff7da3 (diff) |
Refactor the addPassesToEmitAssembly interface into a addPassesToEmitFile
interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22282 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/SparcV9TargetMachine.cpp')
-rw-r--r-- | lib/Target/SparcV9/SparcV9TargetMachine.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp index 155d4d59ef..287bf3d997 100644 --- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp +++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp @@ -156,12 +156,14 @@ SparcV9TargetMachine::SparcV9TargetMachine(const Module &M, jitInfo(*this) { } -/// addPassesToEmitAssembly - This method controls the entire code generation +/// addPassesToEmitFile - This method controls the entire code generation /// process for the ultra sparc. /// bool -SparcV9TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) -{ +SparcV9TargetMachine::addPassesToEmitFile(PassManager &PM, std::ostream &Out, + CodeGenFileType FileType) { + if (FileType != TargetMachine::AssemblyFile) return true; + // FIXME: Implement efficient support for garbage collection intrinsics. PM.add(createLowerGCPass()); |