[llvm-commits] CVS: llvm/lib/Target/ARM/ARMAsmPrinter.cpp
Rafael Espindola
rafael.espindola at gmail.com
Mon Jul 31 13:38:29 PDT 2006
Changes in directory llvm/lib/Target/ARM:
ARMAsmPrinter.cpp updated: 1.7 -> 1.8
---
Log message:
handle GlobalValue::InternalLinkage in doFinalization
---
Diffs of the changes: (+10 -2)
ARMAsmPrinter.cpp | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/ARM/ARMAsmPrinter.cpp
diff -u llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.7 llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.8
--- llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.7 Thu Jul 27 06:38:51 2006
+++ llvm/lib/Target/ARM/ARMAsmPrinter.cpp Mon Jul 31 15:38:13 2006
@@ -207,8 +207,16 @@
unsigned Size = TD->getTypeSize(C->getType());
unsigned Align = TD->getTypeAlignment(C->getType());
- assert (I->getLinkage() == GlobalValue::ExternalLinkage);
- O << "\t.globl " << name << "\n";
+ switch (I->getLinkage()) {
+ default:
+ assert(0 && "Unknown linkage type!");
+ break;
+ case GlobalValue::ExternalLinkage:
+ O << "\t.globl " << name << "\n";
+ break;
+ case GlobalValue::InternalLinkage:
+ break;
+ }
assert (!C->isNullValue());
SwitchToDataSection(".data", I);
More information about the llvm-commits
mailing list