diff gen/llvm.h @ 213:7816aafeea3c trunk

[svn r229] Updated the object.d implementation to the latest Tango. Fixed a bunch of the built-in typeinfos for arrays, they did not inherit TypeInfo_Array. Applied patch to tango/text/convert/Layout.d by fvbommel, closes #47 . Cleaned up some type code. Replaced uses of llvm::Type with LLType (a typedef), same for Value and Constant. Fixed a few cases where typeinfo for user structs could be emitted multiple times, seems to still be some cases of this :/
author lindquist
date Fri, 30 May 2008 19:32:04 +0200
parents 9d44ec83acd1
children a95056b3c996
line wrap: on
line diff
--- a/gen/llvm.h	Tue May 27 22:14:24 2008 +0200
+++ b/gen/llvm.h	Fri May 30 19:32:04 2008 +0200
@@ -16,4 +16,13 @@
 #include "llvm/Support/IRBuilder.h"
 using llvm::IRBuilder;
 
+#define GET_INTRINSIC_DECL(_X) (llvm::Intrinsic::getDeclaration(gIR->module, llvm::Intrinsic:: _X ))
+
+// shortcuts for the _very_ common llvm types
+typedef llvm::Type LLType;
+typedef llvm::Value LLValue;
+typedef llvm::Constant LLConstant;
+
+#define LLSmallVector llvm::SmallVector
+
 #endif // GEN_LLVM_H