From: Chris Lattner Date: Mon, 11 Jul 2005 04:49:33 +0000 (+0000) Subject: add a helper method X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1ed38fb9a71150343dc9625e1808836b7f86d8f6;p=oota-llvm.git add a helper method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22373 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineConstantPool.h b/include/llvm/CodeGen/MachineConstantPool.h index 0e6c642e8e5..47148e8dd11 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