summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCParser/AsmParser.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-07-13 15:34:57 +0000
committerJim Grosbach <grosbach@apple.com>2011-07-13 15:34:57 +0000
commit602aa90ab850f2c68a5b3c0a8b8c4f1ac1b50685 (patch)
tree8c6edf4a817b90d54347a67d87d022f39c843e4b /llvm/lib/MC/MCParser/AsmParser.cpp
parente732a7d62a477d928ea61b0a97fd2b60a127d51c (diff)
downloadbcm5719-llvm-602aa90ab850f2c68a5b3c0a8b8c4f1ac1b50685.tar.gz
bcm5719-llvm-602aa90ab850f2c68a5b3c0a8b8c4f1ac1b50685.zip
Update MCParsedAsmOperand debug methods.
Update the debug output interface for MCParsedAsmOperand to have a print() method which takes an output stream argument, an << operator which invokes the print method using the given stream, and a dump() method which prints the operand to the dbgs() stream. This makes the interface more consistent with the rest of LLVM, and more convenient to use at the debugger command line. llvm-svn: 135043
Diffstat (limited to 'llvm/lib/MC/MCParser/AsmParser.cpp')
-rw-r--r--llvm/lib/MC/MCParser/AsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp
index db188f7c8b6..0c181f39611 100644
--- a/llvm/lib/MC/MCParser/AsmParser.cpp
+++ b/llvm/lib/MC/MCParser/AsmParser.cpp
@@ -1194,7 +1194,7 @@ bool AsmParser::ParseStatement() {
for (unsigned i = 0; i != ParsedOperands.size(); ++i) {
if (i != 0)
OS << ", ";
- ParsedOperands[i]->dump(OS);
+ ParsedOperands[i]->print(OS);
}
OS << "]";
OpenPOWER on IntegriCloud