mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
MachineOperand: Add dump() method
llvm-svn: 287302
This commit is contained in:
parent
719b0399a8
commit
9e79f14ca2
@ -229,6 +229,7 @@ public:
|
||||
void print(raw_ostream &os, ModuleSlotTracker &MST,
|
||||
const TargetRegisterInfo *TRI = nullptr,
|
||||
const TargetIntrinsicInfo *IntrinsicInfo = nullptr) const;
|
||||
LLVM_DUMP_METHOD void dump() const;
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
// Accessors that tell you what kind of MachineOperand you're looking at.
|
||||
|
@ -497,6 +497,12 @@ void MachineOperand::print(raw_ostream &OS, ModuleSlotTracker &MST,
|
||||
OS << "[TF=" << TF << ']';
|
||||
}
|
||||
|
||||
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
||||
LLVM_DUMP_METHOD void MachineOperand::dump() const {
|
||||
dbgs() << *this << '\n';
|
||||
}
|
||||
#endif
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// MachineMemOperand Implementation
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Loading…
Reference in New Issue
Block a user