aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/CodeGen')
-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