diff options
author | Matthias Braun <matze@braunis.de> | 2017-01-29 18:20:42 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2017-01-29 18:20:42 +0000 |
commit | a4976c61666d7ea6679718d6e93f99a9e86b6a64 (patch) | |
tree | 7d255445f192ea02abee08d18b779fe3da75909e /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 87996f906a9c89f86b6d001f58e30d25a00a0f37 (diff) | |
download | bcm5719-llvm-a4976c61666d7ea6679718d6e93f99a9e86b6a64.tar.gz bcm5719-llvm-a4976c61666d7ea6679718d6e93f99a9e86b6a64.zip |
MachineInstr: Remove parameter from dump()
The primary use of the dump() functions in LLVM is for use in a
debugger. Unfortunately lldb does not seem to handle default arguments
so using `p SomeMI.dump()` fails and you have to type the longer `p
SomeMI.dump(nullptr)`. Remove the paramter to make the most common use
easy. (You can always construct something like `p
SomeMI.print(dbgs(),MyTII)` if you need more features).
Differential Revision: https://reviews.llvm.org/D29241
llvm-svn: 293440
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index b7f8e1ce68b..011f6be7770 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -1693,9 +1693,9 @@ void MachineInstr::copyImplicitOps(MachineFunction &MF, } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -LLVM_DUMP_METHOD void MachineInstr::dump(const TargetInstrInfo *TII) const { +LLVM_DUMP_METHOD void MachineInstr::dump() const { dbgs() << " "; - print(dbgs(), false /* SkipOpers */, TII); + print(dbgs()); } #endif |