[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
Evan Cheng
evan.cheng at apple.com
Fri Oct 27 22:57:06 PDT 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCAsmPrinter.cpp updated: 1.203 -> 1.204
---
Log message:
Doh. Must check if GV is constant first before putting it in .cstring.
---
Diffs of the changes: (+2 -2)
PPCAsmPrinter.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.203 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.204
--- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.203 Thu Oct 26 16:48:57 2006
+++ llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp Sat Oct 28 00:56:51 2006
@@ -548,9 +548,9 @@
O << "\t.globl " << name << "\n";
// FALL THROUGH
case GlobalValue::InternalLinkage:
- if (TAI->getCStringSection()) {
+ if (I->isConstant()) {
const ConstantArray *CVA = dyn_cast<ConstantArray>(C);
- if (CVA && CVA->isCString()) {
+ if (TAI->getCStringSection() && CVA && CVA->isCString()) {
SwitchToDataSection(TAI->getCStringSection(), I);
break;
}
More information about the llvm-commits
mailing list