add a helper method

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22373 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-07-11 04:49:33 +00:00
parent efb4bf0de6
commit 1ed38fb9a7

View File

@ -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