summaryrefslogtreecommitdiff
path: root/llvm_context.h
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-09-08 23:38:35 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-09-08 23:38:35 +0200
commitb45ac7bee691a45ccf1c3dc8cdc9c80ea076f1ee (patch)
tree424bc97b53d4871e54f4ac26a2ab0ffccb1cc136 /llvm_context.h
parentcd9a4c6c3264d4d26b58e5da9b397d3f3bbab66a (diff)
Update to LLVM 2.9.
Diffstat (limited to 'llvm_context.h')
-rw-r--r--llvm_context.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/llvm_context.h b/llvm_context.h
new file mode 100644
index 0000000..5fce54b
--- /dev/null
+++ b/llvm_context.h
@@ -0,0 +1,27 @@
+//
+// llvm_context.h
+// Toilet Lisp
+//
+// Created by Matthias Benkard on 08.09.11.
+// Copyright 2011 __MyCompanyName__. All rights reserved.
+//
+
+#ifndef Toilet_Lisp_llvm_context_h
+#define Toilet_Lisp_llvm_context_h
+
+#include <llvm/DerivedTypes.h>
+#include <llvm/LLVMContext.h>
+#include <llvm/Support/TypeBuilder.h>
+
+LLVMContext llvm_context;
+//const Type* IntPtrTy = IntegerType::getInt32Ty(C);
+const Type* Int8Ty = IntegerType::getInt8Ty(llvm_context);
+const Type* Int16Ty = IntegerType::getInt16Ty(llvm_context);
+const Type* Int32Ty = IntegerType::getInt32Ty(llvm_context);
+const Type* Int64Ty = IntegerType::getInt64Ty(llvm_context);
+//const Type* VoidTy = TypeBuilder<void, false>::get(llvm_context);
+const Type* VoidTy = Type::getVoidTy(llvm_context);
+const PointerType* VoidPointerTy = PointerType::get(Int8Ty, 0);
+const PointerType* PointerPointerTy = PointerType::get(VoidPointerTy, 0);
+
+#endif