diff options
author | Eli Bendersky <eliben@google.com> | 2013-01-07 21:51:08 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2013-01-07 21:51:08 +0000 |
commit | 6c1d4972cf1cd6b6072e31c05f97abb1ed7a8497 (patch) | |
tree | 01a1fc8d4730a3b75657fafa9a5428bd7e4f0057 /lib/MC/MCAsmStreamer.cpp | |
parent | d3ae2866d105f6da6375544eb41aea0dad75a9f2 (diff) | |
download | llvm-6c1d4972cf1cd6b6072e31c05f97abb1ed7a8497.tar.gz llvm-6c1d4972cf1cd6b6072e31c05f97abb1ed7a8497.tar.bz2 llvm-6c1d4972cf1cd6b6072e31c05f97abb1ed7a8497.tar.xz |
Add the align_to_end option to .bundle_lock in the MC implementation of aligned
bundling. The document describing this feature and the implementation has also
been updated:
https://sites.google.com/a/chromium.org/dev/nativeclient/pnacl/aligned-bundling-support-in-llvm
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171797 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAsmStreamer.cpp')
-rw-r--r-- | lib/MC/MCAsmStreamer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp index 9b7074d3b2..e234dfed16 100644 --- a/lib/MC/MCAsmStreamer.cpp +++ b/lib/MC/MCAsmStreamer.cpp @@ -260,7 +260,7 @@ public: virtual void EmitInstruction(const MCInst &Inst); virtual void EmitBundleAlignMode(unsigned AlignPow2); - virtual void EmitBundleLock(); + virtual void EmitBundleLock(bool AlignToEnd); virtual void EmitBundleUnlock(); /// EmitRawText - If this file is backed by an assembly streamer, this dumps @@ -1370,8 +1370,10 @@ void MCAsmStreamer::EmitBundleAlignMode(unsigned AlignPow2) { EmitEOL(); } -void MCAsmStreamer::EmitBundleLock() { +void MCAsmStreamer::EmitBundleLock(bool AlignToEnd) { OS << "\t.bundle_lock"; + if (AlignToEnd) + OS << " align_to_end"; EmitEOL(); } |