From 848622f87f00b81bdfef2aed8c26f80e38217713 Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Sat, 5 Nov 2005 09:21:28 +0000 Subject: Add support alignment of allocation instructions. Add support for specifying alignment and size of setjmp jmpbufs. No targets currently do anything with this information, nor is it presrved in the bytecode representation. That's coming up next. llvm-svn: 24196 --- llvm/lib/VMCore/AsmWriter.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/VMCore/AsmWriter.cpp') diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index eb049654608..45be28df724 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -1172,6 +1172,9 @@ void AssemblyWriter::printInstruction(const Instruction &I) { Out << ','; writeOperand(AI->getArraySize(), true); } + if (AI->getAlignment()) { + Out << ", " << AI->getAlignment(); + } } else if (isa(I)) { if (Operand) writeOperand(Operand, true); // Work with broken code Out << " to "; -- cgit v1.2.3