diff options
| author | Jim Grosbach <grosbach@apple.com> | 2011-07-13 15:34:57 +0000 |
|---|---|---|
| committer | Jim Grosbach <grosbach@apple.com> | 2011-07-13 15:34:57 +0000 |
| commit | 602aa90ab850f2c68a5b3c0a8b8c4f1ac1b50685 (patch) | |
| tree | 8c6edf4a817b90d54347a67d87d022f39c843e4b /llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp | |
| parent | e732a7d62a477d928ea61b0a97fd2b60a127d51c (diff) | |
| download | bcm5719-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/Target/X86/AsmParser/X86AsmParser.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp index c6f0b241295..77f5c125aa1 100644 --- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp @@ -145,7 +145,7 @@ struct X86Operand : public MCParsedAsmOperand { /// getEndLoc - Get the location of the last token of this operand. SMLoc getEndLoc() const { return EndLoc; } - virtual void dump(raw_ostream &OS) const {} + virtual void print(raw_ostream &OS) const {} StringRef getToken() const { assert(Kind == Token && "Invalid access!"); |

