diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-01-25 01:24:06 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-01-25 01:24:06 +0000 |
commit | 1d1670227b5c2db7054f6fd70cc46c86914eaf53 (patch) | |
tree | 9e208efe1f878f0af7f8a746b066a9bc3be2aeed /lib | |
parent | 503793e834a8d0e5db8b192ce66e4916389249b4 (diff) | |
download | llvm-1d1670227b5c2db7054f6fd70cc46c86914eaf53.tar.gz llvm-1d1670227b5c2db7054f6fd70cc46c86914eaf53.tar.bz2 llvm-1d1670227b5c2db7054f6fd70cc46c86914eaf53.tar.xz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/IR/AsmWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/IR/AsmWriter.cpp b/lib/IR/AsmWriter.cpp index 73b407ea1b..2b23278a88 100644 --- a/lib/IR/AsmWriter.cpp +++ b/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); |