diff options
| author | Nate Begeman <natebegeman@mac.com> | 2005-11-05 09:21:28 +0000 |
|---|---|---|
| committer | Nate Begeman <natebegeman@mac.com> | 2005-11-05 09:21:28 +0000 |
| commit | 848622f87f00b81bdfef2aed8c26f80e38217713 (patch) | |
| tree | cef0c6b2b461e20d131912b80cd6b21e5f895520 /llvm/lib/VMCore/AsmWriter.cpp | |
| parent | 75fe59c4ead311d292bec997ff6a08c00e644b6d (diff) | |
| download | bcm5719-llvm-848622f87f00b81bdfef2aed8c26f80e38217713.tar.gz bcm5719-llvm-848622f87f00b81bdfef2aed8c26f80e38217713.zip | |
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
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
| -rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<CastInst>(I)) { if (Operand) writeOperand(Operand, true); // Work with broken code Out << " to "; |

