Changes in directory llvm/lib/Target/ARM:
ARMAsmPrinter.cpp updated: 1.39 -> 1.40 --- Log message: move ExtWeakSymbols to AsmPrinter --- Diffs of the changes: (+1 -10) ARMAsmPrinter.cpp | 11 +---------- 1 files changed, 1 insertion(+), 10 deletions(-) Index: llvm/lib/Target/ARM/ARMAsmPrinter.cpp diff -u llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.39 llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.40 --- llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.39 Sat Dec 9 20:53:14 2006 +++ llvm/lib/Target/ARM/ARMAsmPrinter.cpp Sun Dec 17 21:37:18 2006 @@ -62,8 +62,6 @@ : AsmPrinter(O, TM, T) { } - std::set<std::string> ExtWeakSymbols; - /// We name each basic block in a Function with a unique number, so /// that we can consistently refer to them later. This is cleared /// at the beginning of each call to runOnMachineFunction(). @@ -246,7 +244,7 @@ std::string Name = Mang->getValueName(GV); O << Name; if (GV->hasExternalWeakLinkage()) { - ExtWeakSymbols.insert(Name); + ExtWeakSymbols.insert(GV); } } break; @@ -337,13 +335,6 @@ } } - if (ExtWeakSymbols.begin() != ExtWeakSymbols.end()) - SwitchToDataSection(""); - for (std::set<std::string>::iterator i = ExtWeakSymbols.begin(), - e = ExtWeakSymbols.end(); i != e; ++i) { - O << TAI->getWeakRefDirective() << *i << "\n"; - } - AsmPrinter::doFinalization(M); return false; // success } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits