This makes check failures much easier to understand.
Make it empty (but leave it in the class) for NDEBUG builds.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D18529
Add a dump method to MachineFunctionProperties for better error messages ClosedPublic Authored by dschuff on Mar 28 2016, 4:00 PM.
Details Summary This makes check failures much easier to understand.
Diff Detail Event Timelinedschuff marked 2 inline comments as done. Comment Actions
This revision is now accepted and ready to land.Mar 29 2016, 11:54 AM Closed by commit rL264780: Add a print method to MachineFunctionProperties for better error messages (authored by dschuff). · Explain WhyMar 29 2016, 1:33 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 51849 include/llvm/CodeGen/MachineFunction.h
lib/CodeGen/MachineFunction.cpp
lib/CodeGen/MachineFunctionPass.cpp
|
Short story, rename dump -> print.
The convention is to have dump to be available only in debug build, but more importantly to have it to print on dbgs().
What we want here is a print method.