diff options
-rw-r--r-- | include/llvm/CodeGen/MachineConstantPool.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineConstantPool.h b/include/llvm/CodeGen/MachineConstantPool.h index 0e6c642e8e..47148e8dd1 100644 --- a/include/llvm/CodeGen/MachineConstantPool.h +++ b/include/llvm/CodeGen/MachineConstantPool.h @@ -46,6 +46,10 @@ public: return Constants.size()-1; } + /// isEmpty - Return true if this constant pool contains no constants. + /// + bool isEmpty() const { return Constants.empty(); } + const std::vector<Constant*> &getConstants() const { return Constants; } /// print - Used by the MachineFunction printer to print information about |