mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix llvm-dis to print the inalloca bit on allocas.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200059 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
503793e834
commit
1d1670227b
@ -1945,6 +1945,8 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
|
|||||||
} else if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) {
|
} else if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) {
|
||||||
Out << ' ';
|
Out << ' ';
|
||||||
TypePrinter.print(AI->getAllocatedType(), Out);
|
TypePrinter.print(AI->getAllocatedType(), Out);
|
||||||
|
if (AI->isUsedWithInAlloca())
|
||||||
|
Out << ", inalloca";
|
||||||
if (!AI->getArraySize() || AI->isArrayAllocation()) {
|
if (!AI->getArraySize() || AI->isArrayAllocation()) {
|
||||||
Out << ", ";
|
Out << ", ";
|
||||||
writeOperand(AI->getArraySize(), true);
|
writeOperand(AI->getArraySize(), true);
|
||||||
|
Loading…
Reference in New Issue
Block a user