Mercurial > projects > ldc
comparison gen/runtime.cpp @ 1529:ad7f2f1862d6
Adjust LDC to work with the LLVMContext LLVM changes.
This means we now require a fairly new LLVM revision. I use 75234.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Fri, 10 Jul 2009 21:30:02 +0200 |
parents | f19adff18813 |
children | c88b16d4a13c |
comparison
equal
deleted
inserted
replaced
1528:15f1707721fa | 1529:ad7f2f1862d6 |
---|---|
114 fatal(); | 114 fatal(); |
115 //return NULL; | 115 //return NULL; |
116 } | 116 } |
117 | 117 |
118 const llvm::PointerType* t = g->getType(); | 118 const llvm::PointerType* t = g->getType(); |
119 return new llvm::GlobalVariable(t->getElementType(),g->isConstant(),g->getLinkage(),NULL,g->getName(),target); | 119 return new llvm::GlobalVariable(*target, t->getElementType(),g->isConstant(),g->getLinkage(),NULL,g->getName()); |
120 } | 120 } |
121 | 121 |
122 ////////////////////////////////////////////////////////////////////////////////////////////////// | 122 ////////////////////////////////////////////////////////////////////////////////////////////////// |
123 | 123 |
124 static const LLType* rt_ptr(const LLType* t) | 124 static const LLType* rt_ptr(const LLType* t) |