projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1acc5a4
)
And asm writing for packed struct initializers
author
Andrew Lenharth
<andrewl@lenharth.org>
Mon, 8 Jan 2007 18:21:30 +0000
(18:21 +0000)
committer
Andrew Lenharth
<andrewl@lenharth.org>
Mon, 8 Jan 2007 18:21:30 +0000
(18:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33016
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/AsmWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/AsmWriter.cpp
b/lib/VMCore/AsmWriter.cpp
index 64cac8c518cb50d456f2ed92eae95739d8fc7750..704334b78ac2d655ccf2baa112b876ce82b95cff 100644
(file)
--- a/
lib/VMCore/AsmWriter.cpp
+++ b/
lib/VMCore/AsmWriter.cpp
@@
-501,6
+501,8
@@
static void WriteConstantInt(std::ostream &Out, const Constant *CV,
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
@@
static void WriteConstantInt(std::ostream &Out, const Constant *CV,
}
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 &&