mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
And asm writing for packed struct initializers
llvm-svn: 33016
This commit is contained in:
parent
55be52f117
commit
31e7a82bea
@ -501,6 +501,8 @@ static void WriteConstantInt(std::ostream &Out, const Constant *CV,
|
|||||||
Out << " ]";
|
Out << " ]";
|
||||||
}
|
}
|
||||||
} else if (const ConstantStruct *CS = dyn_cast<ConstantStruct>(CV)) {
|
} else if (const ConstantStruct *CS = dyn_cast<ConstantStruct>(CV)) {
|
||||||
|
if (CS->getType()->isPacked())
|
||||||
|
Out << '<';
|
||||||
Out << '{';
|
Out << '{';
|
||||||
unsigned N = CS->getNumOperands();
|
unsigned N = CS->getNumOperands();
|
||||||
if (N) {
|
if (N) {
|
||||||
@ -525,6 +527,8 @@ static void WriteConstantInt(std::ostream &Out, const Constant *CV,
|
|||||||
}
|
}
|
||||||
|
|
||||||
Out << " }";
|
Out << " }";
|
||||||
|
if (CS->getType()->isPacked())
|
||||||
|
Out << '>';
|
||||||
} else if (const ConstantPacked *CP = dyn_cast<ConstantPacked>(CV)) {
|
} else if (const ConstantPacked *CP = dyn_cast<ConstantPacked>(CV)) {
|
||||||
const Type *ETy = CP->getType()->getElementType();
|
const Type *ETy = CP->getType()->getElementType();
|
||||||
assert(CP->getNumOperands() > 0 &&
|
assert(CP->getNumOperands() > 0 &&
|
||||||
|
Loading…
Reference in New Issue
Block a user