From 1ed38fb9a71150343dc9625e1808836b7f86d8f6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 11 Jul 2005 04:49:33 +0000 Subject: add a helper method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22373 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineConstantPool.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/llvm/CodeGen/MachineConstantPool.h') 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 &getConstants() const { return Constants; } /// print - Used by the MachineFunction printer to print information about -- cgit v1.2.3-18-g5258