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
/
X86ATTAsmPrinter.cpp
diff --git
a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
index 7b91819f9798c478abfe37db36cbf43e7a00f814..c8e9efd468b3ea019b8827b6ca31e87e9845d057 100644
(file)
--- a/
lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
+++ b/
lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
@@
-702,6
+702,10
@@
void X86ATTAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
printInstructionThroughMCStreamer(MI);
else
printInstruction(MI);
+
+ if (VerboseAsm && !MI->getDebugLoc().isUnknown())
+ EmitComments(*MI);
+ O << '\n';
}
void X86ATTAsmPrinter::PrintGlobalVariable(const GlobalVariable* GVar) {