This is an archive of the discontinued LLVM Phabricator instance.

MachineInstr: Remove parameter from dump()
ClosedPublic

Authored by MatzeB on Jan 27 2017, 8:10 PM.

Details

Summary

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).

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB created this revision.Jan 27 2017, 8:10 PM
sebpop accepted this revision.Jan 27 2017, 8:19 PM

I don't mind reverting this part of the patch for now to help users of lldb.
In the long run lldb should be fixed to accept the c++ construct.

This revision is now accepted and ready to land.Jan 27 2017, 8:19 PM
This revision was automatically updated to reflect the committed changes.