diff options
| author | Derek Schuff <dschuff@google.com> | 2016-03-29 20:28:20 +0000 |
|---|---|---|
| committer | Derek Schuff <dschuff@google.com> | 2016-03-29 20:28:20 +0000 |
| commit | 07636cd5e7e029808c98f2cf2ebae8780986d877 (patch) | |
| tree | b7c9f61d7ae62bf264fdba27eaf45f4ab72805a3 /llvm/include | |
| parent | 32071a20bc62e8992f1e0c218de8493a0c5604a7 (diff) | |
| download | bcm5719-llvm-07636cd5e7e029808c98f2cf2ebae8780986d877.tar.gz bcm5719-llvm-07636cd5e7e029808c98f2cf2ebae8780986d877.zip | |
Add a print method to MachineFunctionProperties for better error messages
This makes check failures much easier to understand.
Make it empty (but leave it in the class) for NDEBUG builds.
Differential Revision: http://reviews.llvm.org/D18529
llvm-svn: 264780
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/CodeGen/MachineFunction.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h index b253691dabb..27d2e0a683c 100644 --- a/llvm/include/llvm/CodeGen/MachineFunction.h +++ b/llvm/include/llvm/CodeGen/MachineFunction.h @@ -143,6 +143,8 @@ public: return !V.Properties.test(Properties); } + void print(raw_ostream &ROS) const; + private: BitVector Properties = BitVector(static_cast<unsigned>(Property::LastProperty)); |

