summaryrefslogtreecommitdiff
path: root/llvm_context.h
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-09-09 00:08:00 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-09-09 00:08:00 +0200
commitaa7317c027c436e776acb3b72dc03ab2da0df2b1 (patch)
tree4bb9466c400fbaa0d491ae27b02dde82879e3d86 /llvm_context.h
parent350d21f1787a75d1fb3f8af19e556e05224f59b9 (diff)
Fix build.
Diffstat (limited to 'llvm_context.h')
-rw-r--r--llvm_context.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/llvm_context.h b/llvm_context.h
index 5fce54b..4a2600a 100644
--- a/llvm_context.h
+++ b/llvm_context.h
@@ -11,17 +11,14 @@
#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);
+extern llvm::LLVMContext llvm_context;
+extern const llvm::Type* Int8Ty;
+extern const llvm::Type* Int16Ty;
+extern const llvm::Type* Int32Ty;
+extern const llvm::Type* Int64Ty;
+extern const llvm::Type* VoidTy;
+extern const llvm::PointerType* VoidPointerTy;
+extern const llvm::PointerType* PointerPointerTy;
#endif