[llvm-commits] CVS: llvm/include/llvm/Target/TargetData.h

Chris Lattner lattner at cs.uiuc.edu
Sat Apr 23 15:20:39 PDT 2005



Changes in directory llvm/include/llvm/Target:

TargetData.h updated: 1.30 -> 1.31
---
Log message:

Add a helper method


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

 TargetData.h |    1 +
 1 files changed, 1 insertion(+)


Index: llvm/include/llvm/Target/TargetData.h
diff -u llvm/include/llvm/Target/TargetData.h:1.30 llvm/include/llvm/Target/TargetData.h:1.31
--- llvm/include/llvm/Target/TargetData.h:1.30	Thu Apr 21 15:53:44 2005
+++ llvm/include/llvm/Target/TargetData.h	Sat Apr 23 17:20:22 2005
@@ -85,6 +85,7 @@
   unsigned char getDoubleAlignment()  const { return  DoubleAlignment; }
   unsigned char getPointerAlignment() const { return PointerAlignment; }
   unsigned char getPointerSize()      const { return      PointerSize; }
+  unsigned char getPointerSizeInBits()const { return      PointerSize*8; }
 
   /// getTypeSize - Return the number of bytes necessary to hold the specified
   /// type.






More information about the llvm-commits mailing list