aboutsummaryrefslogtreecommitdiffstats
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
parentefb4bf0de664f47b53e70ec4a3f9aec8dea14aaf (diff)
downloadexternal_llvm-1ed38fb9a71150343dc9625e1808836b7f86d8f6.zip
external_llvm-1ed38fb9a71150343dc9625e1808836b7f86d8f6.tar.gz
external_llvm-1ed38fb9a71150343dc9625e1808836b7f86d8f6.tar.bz2
add a helper method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22373 91177308-0d34-0410-b5e6-96231b3b80d8
-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 0e6c642..47148e8 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