Add address space number to getPointerSize() calls.

This is required for LLVM 3.2.
This commit is contained in:
kai
2012-10-20 17:49:58 +02:00
parent fde625b33d
commit 83a7258ae4
3 changed files with 4 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ unsigned GetTypeAlignment(Ir* ir, Type* t)
unsigned GetPointerSize(Ir* ir)
{
return gDataLayout->getPointerSize();
return gDataLayout->getPointerSize(ADDRESS_SPACE);
}
unsigned GetTypeStoreSize(Ir* ir, Type* t)