summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-01-25 01:24:06 +0000
committerReid Kleckner <reid@kleckner.net>2014-01-25 01:24:06 +0000
commit2084403afb49ebbff4170788062d6703d1e29d35 (patch)
treedf45ddc8e5aa70017a16b822119657ddedcddddb /llvm
parent4d67a2e85a39c798faf77e79076cde827c82c237 (diff)
downloadbcm5719-llvm-2084403afb49ebbff4170788062d6703d1e29d35.tar.gz
bcm5719-llvm-2084403afb49ebbff4170788062d6703d1e29d35.zip
Fix llvm-dis to print the inalloca bit on allocas.
llvm-svn: 200059
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/IR/AsmWriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp
index 73b407ea1b4..2b23278a88c 100644
--- a/llvm/lib/IR/AsmWriter.cpp
+++ b/llvm/lib/IR/AsmWriter.cpp
@@ -1945,6 +1945,8 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
} else if (const AllocaInst *AI = dyn_cast<AllocaInst>(&I)) {
Out << ' ';
TypePrinter.print(AI->getAllocatedType(), Out);
+ if (AI->isUsedWithInAlloca())
+ Out << ", inalloca";
if (!AI->getArraySize() || AI->isArrayAllocation()) {
Out << ", ";
writeOperand(AI->getArraySize(), true);
OpenPOWER on IntegriCloud