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).
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
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.