summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-05-26 18:35:10 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-05-26 18:35:10 +0000
commit2fb8401b2aae806b19df04a6a37efe70a944f6ec (patch)
tree569c8c7e52a4ad2eca3f726ee106db9d0ad04953 /llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
parentdf9f6364b24194ad00943a923a46d923b75e86d6 (diff)
downloadbcm5719-llvm-2fb8401b2aae806b19df04a6a37efe70a944f6ec.tar.gz
bcm5719-llvm-2fb8401b2aae806b19df04a6a37efe70a944f6ec.zip
Print "lock \t foo" instead of "lock \n foo".
This gets gas and llc -filetype=obj to agree on the order of prefixes. For llvm-mc we need to fix the asm parser to know that it makes a difference on which line the "lock" is in. Part of pr23594. llvm-svn: 238232
Diffstat (limited to 'llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp')
-rw-r--r--llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp b/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
index e0b6c50415b..af4399a41a0 100644
--- a/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
+++ b/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
@@ -48,7 +48,7 @@ void X86ATTInstPrinter::printInst(const MCInst *MI, raw_ostream &OS,
EmitAnyX86InstComments(MI, *CommentStream, getRegisterName);
if (TSFlags & X86II::LOCK)
- OS << "\tlock\n";
+ OS << "\tlock\t";
// Output CALLpcrel32 as "callq" in 64-bit mode.
// In Intel annotation it's always emitted as "call".
OpenPOWER on IntegriCloud