[llvm-commits] CVS: llvm/include/llvm/Constants.h
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sat Oct 23 18:41:21 PDT 2004
Changes in directory llvm/include/llvm:
Constants.h updated: 1.60 -> 1.61
---
Log message:
Add ConstantExpr::getSizeOf(Type*).
---
Diffs of the changes: (+4 -0)
Index: llvm/include/llvm/Constants.h
diff -u llvm/include/llvm/Constants.h:1.60 llvm/include/llvm/Constants.h:1.61
--- llvm/include/llvm/Constants.h:1.60 Sat Oct 16 13:05:25 2004
+++ llvm/include/llvm/Constants.h Sat Oct 23 20:41:10 2004
@@ -557,6 +557,10 @@
return getSelectTy(V1->getType(), C, V1, V2);
}
+ /// getSizeOf constant expr - computes the size of a type in a
+ /// target independent way
+ ///
+ static Constant *getSizeOf(const Type *Ty);
/// ConstantExpr::get - Return a binary or shift operator constant expression,
/// folding if possible.
More information about the llvm-commits
mailing list