diff options
author | Owen Anderson <resistor@mac.com> | 2011-09-15 18:36:29 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2011-09-15 18:36:29 +0000 |
commit | d1814791ade377c9020669e372066d7319773833 (patch) | |
tree | 2575bf161f925a2468b340c778a9c2b0ef63ae0f /llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp | |
parent | 53e2e48de7691f602a327c6a6c7d848b63f7ffbd (diff) | |
download | bcm5719-llvm-d1814791ade377c9020669e372066d7319773833.tar.gz bcm5719-llvm-d1814791ade377c9020669e372066d7319773833.zip |
Add support for stored annotations to MCInst, and provide facilities for MC-based InstPrinters to print them out. Enhance the ARM and X86 InstPrinter's to do so in verbose mode.
llvm-svn: 139820
Diffstat (limited to 'llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp b/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp index 591b5838310..76a1da49595 100644 --- a/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp +++ b/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp @@ -45,8 +45,10 @@ void X86ATTInstPrinter::printInst(const MCInst *MI, raw_ostream &OS) { printInstruction(MI, OS); // If verbose assembly is enabled, we can print some informative comments. - if (CommentStream) + if (CommentStream) { + printAnnotations(MI, *CommentStream); EmitAnyX86InstComments(MI, *CommentStream, getRegisterName); + } } StringRef X86ATTInstPrinter::getOpcodeName(unsigned Opcode) const { |