From 3bdfd6fcd14cc4c5f276b01ece285d591924a2a9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 11 Jul 2005 04:49:33 +0000 Subject: [PATCH] add a helper method llvm-svn: 22373 --- llvm/include/llvm/CodeGen/MachineConstantPool.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/include/llvm/CodeGen/MachineConstantPool.h b/llvm/include/llvm/CodeGen/MachineConstantPool.h index 0e6c642e8e50..47148e8dd111 100644 --- a/llvm/include/llvm/CodeGen/MachineConstantPool.h +++ b/llvm/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 -- GitLab