[llvm-commits] CVS: llvm/lib/Target/Sparc/EmitAssembly.cpp
vadve at cs.uiuc.edu
vadve at cs.uiuc.edu
Mon Sep 16 10:55:01 PDT 2002
Changes in directory llvm/lib/Target/Sparc:
EmitAssembly.cpp updated: 1.59 -> 1.60
---
Log message:
Don't print out global names unnecesssarily. Also, expose pass
constructors so passes can be inserted by TargetMachine.cpp.
---
Diffs of the changes:
Index: llvm/lib/Target/Sparc/EmitAssembly.cpp
diff -u llvm/lib/Target/Sparc/EmitAssembly.cpp:1.59 llvm/lib/Target/Sparc/EmitAssembly.cpp:1.60
--- llvm/lib/Target/Sparc/EmitAssembly.cpp:1.59 Fri Sep 13 21:07:43 2002
+++ llvm/lib/Target/Sparc/EmitAssembly.cpp Mon Sep 16 10:54:02 2002
@@ -508,7 +508,7 @@
} // End anonymous namespace
-Pass *UltraSparc::getFunctionAsmPrinterPass(PassManager &PM, std::ostream &Out){
+Pass *UltraSparc::getFunctionAsmPrinterPass(std::ostream &Out) {
return new SparcFunctionAsmPrinter(Out, *this);
}
@@ -830,7 +830,8 @@
void SparcModuleAsmPrinter::printGlobalVariable(const GlobalVariable* GV)
{
- toAsm << "\t.global\t" << getID(GV) << "\n";
+ if (GV->hasExternalLinkage())
+ toAsm << "\t.global\t" << getID(GV) << "\n";
if (GV->hasInitializer())
printConstant(GV->getInitializer(), getID(GV));
@@ -879,6 +880,6 @@
} // End anonymous namespace
-Pass *UltraSparc::getModuleAsmPrinterPass(PassManager &PM, std::ostream &Out) {
+Pass *UltraSparc::getModuleAsmPrinterPass(std::ostream &Out) {
return new SparcModuleAsmPrinter(Out, *this);
}
More information about the llvm-commits
mailing list