add a helper method
authorChris Lattner <sabre@nondot.org>
Mon, 11 Jul 2005 04:49:33 +0000 (04:49 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 11 Jul 2005 04:49:33 +0000 (04:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22373 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineConstantPool.h

index 0e6c642e8e50626db153128c1ad6b093d4055231..47148e8dd1118e3698d50fff8d7d68c96c3d1263 100644 (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