[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineConstantPool.h

Chris Lattner lattner at cs.uiuc.edu
Sun Jul 10 21:49:44 PDT 2005



Changes in directory llvm/include/llvm/CodeGen:

MachineConstantPool.h updated: 1.5 -> 1.6
---
Log message:

add a helper method


---
Diffs of the changes:  (+4 -0)

 MachineConstantPool.h |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/include/llvm/CodeGen/MachineConstantPool.h
diff -u llvm/include/llvm/CodeGen/MachineConstantPool.h:1.5 llvm/include/llvm/CodeGen/MachineConstantPool.h:1.6
--- llvm/include/llvm/CodeGen/MachineConstantPool.h:1.5	Thu Apr 21 15:38:00 2005
+++ llvm/include/llvm/CodeGen/MachineConstantPool.h	Sun Jul 10 23:49:33 2005
@@ -46,6 +46,10 @@
     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






More information about the llvm-commits mailing list