[llvm-commits] CVS: llvm/lib/Target/ARM/ARMAsmPrinter.cpp
Lauro Ramos Venancio
lauro.venancio at gmail.com
Wed Apr 25 07:50:57 PDT 2007
Changes in directory llvm/lib/Target/ARM:
ARMAsmPrinter.cpp updated: 1.66 -> 1.67
---
Log message:
remember to emit weak reference in one more case.
---
Diffs of the changes: (+6 -1)
ARMAsmPrinter.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/ARM/ARMAsmPrinter.cpp
diff -u llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.66 llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.67
--- llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.66 Mon Apr 23 15:07:25 2007
+++ llvm/lib/Target/ARM/ARMAsmPrinter.cpp Wed Apr 25 09:50:40 2007
@@ -639,8 +639,13 @@
if (MCPE.isMachineConstantPoolEntry())
EmitMachineConstantPoolValue(MCPE.Val.MachineCPVal);
- else
+ else {
EmitGlobalConstant(MCPE.Val.ConstVal);
+ // remember to emit the weak reference
+ if (const GlobalValue *GV = dyn_cast<GlobalValue>(MCPE.Val.ConstVal))
+ if (GV->hasExternalWeakLinkage())
+ ExtWeakSymbols.insert(GV);
+ }
}
}
More information about the llvm-commits
mailing list