[x86] Teach the asm comment printing to only print the clarification of
authorChandler Carruth <chandlerc@gmail.com>
Wed, 3 Sep 2014 22:46:44 +0000 (22:46 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 3 Sep 2014 22:46:44 +0000 (22:46 +0000)
commit5f209637c4a6297315774c3e7098cc1f458e80f7
treee42974762f3cf633dcd549f86e839bcc9b205248
parentf12b1d8c7ba3fd463955142ccba13c59e012a0b9
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217099 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
lib/Target/X86/InstPrinter/X86ATTInstPrinter.h
lib/Target/X86/InstPrinter/X86InstComments.cpp
lib/Target/X86/InstPrinter/X86InstComments.h