[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Mon Jan 8 10:22:08 PST 2007
Changes in directory llvm/lib/VMCore:
AsmWriter.cpp updated: 1.235 -> 1.236
---
Log message:
And asm writing for packed struct initializers
---
Diffs of the changes: (+4 -0)
AsmWriter.cpp | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.235 llvm/lib/VMCore/AsmWriter.cpp:1.236
--- llvm/lib/VMCore/AsmWriter.cpp:1.235 Sat Jan 6 01:24:44 2007
+++ llvm/lib/VMCore/AsmWriter.cpp Mon Jan 8 12:21:30 2007
@@ -501,6 +501,8 @@
Out << " ]";
}
} else if (const ConstantStruct *CS = dyn_cast<ConstantStruct>(CV)) {
+ if (CS->getType()->isPacked())
+ Out << '<';
Out << '{';
unsigned N = CS->getNumOperands();
if (N) {
@@ -525,6 +527,8 @@
}
Out << " }";
+ if (CS->getType()->isPacked())
+ Out << '>';
} else if (const ConstantPacked *CP = dyn_cast<ConstantPacked>(CV)) {
const Type *ETy = CP->getType()->getElementType();
assert(CP->getNumOperands() > 0 &&
More information about the llvm-commits
mailing list