aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineConstantPool.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-07-11 04:49:33 +0000
committerChris Lattner <sabre@nondot.org>2005-07-11 04:49:33 +0000
commit1ed38fb9a71150343dc9625e1808836b7f86d8f6 (patch)
treedc75fd5b18f78da635c1a7c2117588d53f9c9899 /include/llvm/CodeGen/MachineConstantPool.h
parentefb4bf0de664f47b53e70ec4a3f9aec8dea14aaf (diff)
add a helper method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22373 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineConstantPool.h')
-rw-r--r--include/llvm/CodeGen/MachineConstantPool.h4
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