aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-10-24 01:41:10 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-10-24 01:41:10 +0000
commit60ab1402981a757c5ee785de540a5d0f85839c5d (patch)
tree8774ccdcd5a4dad2a12b0145803a9b2925910953 /include/llvm
parentd4b4a99587a0856473b9334455f6cebcb4fe2583 (diff)
downloadexternal_llvm-60ab1402981a757c5ee785de540a5d0f85839c5d.zip
external_llvm-60ab1402981a757c5ee785de540a5d0f85839c5d.tar.gz
external_llvm-60ab1402981a757c5ee785de540a5d0f85839c5d.tar.bz2
Add ConstantExpr::getSizeOf(Type*).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Constants.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index 6a59cfa..502974d 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -557,6 +557,10 @@ public:
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.