Mercurial > projects > ldc
diff gen/tollvm.cpp @ 193:aca17e55b7a5 trunk
[svn r209] Fixed: exotic array to pointer casts were broken.
Changed: classes now have opaque vtables.
author | lindquist |
---|---|
date | Mon, 12 May 2008 18:44:11 +0200 |
parents | 3aed08fb64f4 |
children | 8f9191180c7a |
line wrap: on
line diff
--- a/gen/tollvm.cpp Mon May 12 18:22:55 2008 +0200 +++ b/gen/tollvm.cpp Mon May 12 18:44:11 2008 +0200 @@ -1428,6 +1428,11 @@ return llvm::PointerType::get(t, 0); } +const llvm::PointerType* getVoidPtrType() +{ + return getPtrToType(llvm::Type::Int8Ty); +} + llvm::ConstantPointerNull* getNullPtr(const llvm::Type* t) { const llvm::PointerType* pt = llvm::cast<llvm::PointerType>(t);