changeset 1323:c74dfdcc5043

Update for LLVM rev > 71348: getTypePaddedSize -> getTypeAllocSize
author Christian Kamm <kamm incasoftware de>
date Sat, 09 May 2009 18:57:00 +0200
parents b8c2f3e05b52
children b3674ad4026d
files gen/tollvm.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gen/tollvm.cpp	Sat May 09 15:27:27 2009 +0200
+++ b/gen/tollvm.cpp	Sat May 09 18:57:00 2009 +0200
@@ -737,7 +737,11 @@
 
 size_t getTypePaddedSize(const LLType* t)
 {
+#if LLVM_REV > 71348
+    size_t sz = gTargetData->getTypeAllocSize(t);
+#else
     size_t sz = gTargetData->getTypePaddedSize(t);
+#endif
     //Logger::cout() << "abi type size of: " << *t << " == " << sz << '\n';
     return sz;
 }