diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-09-03 22:46:44 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-09-03 22:46:44 +0000 |
commit | 2317311825e1f7464759895108d7723a153cbefb (patch) | |
tree | 536d41ceb55b10a7d6d63995d1f2a30998bca3b0 /llvm/lib/Target/X86/InstPrinter/X86InstComments.h | |
parent | 351b078b6de8c609e6356866d42de09f747f5c01 (diff) | |
download | bcm5719-llvm-2317311825e1f7464759895108d7723a153cbefb.tar.gz bcm5719-llvm-2317311825e1f7464759895108d7723a153cbefb.zip |
[x86] Teach the asm comment printing to only print the clarification of
an immediate operand when we don't have instruction-specific comments.
This ensures that instruction-specific comments are attached to the same
line as the instruction which is important for using them to write
readable and maintainable tests. My next commit will just such a test.
llvm-svn: 217099
Diffstat (limited to 'llvm/lib/Target/X86/InstPrinter/X86InstComments.h')
-rw-r--r-- | llvm/lib/Target/X86/InstPrinter/X86InstComments.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/InstPrinter/X86InstComments.h b/llvm/lib/Target/X86/InstPrinter/X86InstComments.h index 7f4122dd381..687581b10ae 100644 --- a/llvm/lib/Target/X86/InstPrinter/X86InstComments.h +++ b/llvm/lib/Target/X86/InstPrinter/X86InstComments.h @@ -18,7 +18,7 @@ namespace llvm { class MCInst; class raw_ostream; - void EmitAnyX86InstComments(const MCInst *MI, raw_ostream &OS, + bool EmitAnyX86InstComments(const MCInst *MI, raw_ostream &OS, const char *(*getRegName)(unsigned)); } |