diff gen/todebug.cpp @ 1571:8d086d552909

IntegerType is now contextifed. Requires llvm >= 78969. resistor says this will be the last context API change :)
author Benjamin Kramer <benny.kra@gmail.com>
date Fri, 14 Aug 2009 00:39:18 +0200
parents 755abafbf25d
children 40bd4a0d4870
line wrap: on
line diff
--- a/gen/todebug.cpp	Thu Aug 06 16:02:14 2009 +0200
+++ b/gen/todebug.cpp	Fri Aug 14 00:39:18 2009 +0200
@@ -361,13 +361,13 @@
     vals[4] = DtoConstInt(linnum);
 
     // size in bits
-    vals[5] = LLConstantInt::get(LLType::Int64Ty, getTypeBitSize(T), false);
+    vals[5] = LLConstantInt::get(LLType::getInt64Ty(gIR->context()), getTypeBitSize(T), false);
 
     // alignment in bits
-    vals[6] = LLConstantInt::get(LLType::Int64Ty, getABITypeAlign(T)*8, false);
+    vals[6] = LLConstantInt::get(LLType::getInt64Ty(gIR->context()), getABITypeAlign(T)*8, false);
 
     // offset in bits
-    vals[7] = LLConstantInt::get(LLType::Int64Ty, 0, false);
+    vals[7] = LLConstantInt::get(LLType::getInt64Ty(gIR->context()), 0, false);
 
     // FIXME: dont know what this is
     vals[8] = DtoConstUint(0);