mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 22:20:37 +00:00
And asm writing for packed struct initializers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1acc5a4e87
commit
43f344a266
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user