[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp
Rafael Espindola
rafael.espindola at gmail.com
Sun Dec 17 19:37:37 PST 2006
Changes in directory llvm/lib/CodeGen:
AsmPrinter.cpp updated: 1.125 -> 1.126
---
Log message:
move ExtWeakSymbols to AsmPrinter
---
Diffs of the changes: (+12 -0)
AsmPrinter.cpp | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.125 llvm/lib/CodeGen/AsmPrinter.cpp:1.126
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.125 Thu Dec 14 13:17:33 2006
+++ llvm/lib/CodeGen/AsmPrinter.cpp Sun Dec 17 21:37:18 2006
@@ -106,6 +106,18 @@
}
bool AsmPrinter::doFinalization(Module &M) {
+ if (TAI->getWeakRefDirective()) {
+ if (ExtWeakSymbols.begin() != ExtWeakSymbols.end())
+ SwitchToDataSection("");
+
+ for (std::set<const GlobalValue*>::iterator i = ExtWeakSymbols.begin(),
+ e = ExtWeakSymbols.end(); i != e; ++i) {
+ const GlobalValue *GV = *i;
+ std::string Name = Mang->getValueName(GV);
+ O << TAI->getWeakRefDirective() << Name << "\n";
+ }
+ }
+
delete Mang; Mang = 0;
return false;
}
More information about the llvm-commits
mailing list