projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remove DebugLoc from MCInst and eliminate "Comment printing" from
[oota-llvm.git]
/
lib
/
Target
/
X86
/
AsmPrinter
/
X86IntelAsmPrinter.cpp
diff --git
a/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp
b/lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp
index cc8c74b7a484616f8bd419ffb7e1be4c2a9d6de9..9fd504d3f44b8ac948337fe7bd207ddb2b138b3f 100644
(file)
--- a/
lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp
+++ b/
lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.cpp
@@
-437,6
+437,10
@@
void X86IntelAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
// Call the autogenerated instruction printer routines.
printInstruction(MI);
+
+ if (VerboseAsm && !MI->getDebugLoc().isUnknown())
+ EmitComments(*MI);
+ O << '\n';
}
bool X86IntelAsmPrinter::doInitialization(Module &M) {