[llvm-commits] CVS: llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp SparcV9TargetMachine.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Jun 24 19:48:50 PDT 2005
Changes in directory llvm/lib/Target/SparcV9:
SparcV9TargetMachine.cpp updated: 1.138 -> 1.139
SparcV9TargetMachine.h updated: 1.12 -> 1.13
---
Log message:
Refactor the addPassesToEmitAssembly interface into a addPassesToEmitFile
interface.
---
Diffs of the changes: (+7 -4)
SparcV9TargetMachine.cpp | 8 +++++---
SparcV9TargetMachine.h | 3 ++-
2 files changed, 7 insertions(+), 4 deletions(-)
Index: llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.138 llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.139
--- llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.138 Thu Jun 16 23:00:22 2005
+++ llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp Fri Jun 24 21:48:37 2005
@@ -156,12 +156,14 @@
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());
Index: llvm/lib/Target/SparcV9/SparcV9TargetMachine.h
diff -u llvm/lib/Target/SparcV9/SparcV9TargetMachine.h:1.12 llvm/lib/Target/SparcV9/SparcV9TargetMachine.h:1.13
--- llvm/lib/Target/SparcV9/SparcV9TargetMachine.h:1.12 Thu Apr 21 18:25:42 2005
+++ llvm/lib/Target/SparcV9/SparcV9TargetMachine.h Fri Jun 24 21:48:37 2005
@@ -43,7 +43,8 @@
return &instrInfo.getRegisterInfo();
}
- virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
+ virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,
+ CodeGenFileType FileType);
virtual bool addPassesToEmitMachineCode(FunctionPassManager &PM,
MachineCodeEmitter &MCE);
More information about the llvm-commits
mailing list