Mercurial > projects > ldc
view gen/runtime.h @ 1521:982eb70e83b2
Fix build for LLVM >= r74640
Some LLVM objects now take a 'Context' to make multi-threaded apps easier.
Since we're not multi-threaded it's safe to use llvm::getGlobalContext()
which gives us the same behavior as we had before.
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Fri, 03 Jul 2009 17:24:35 +0200 |
parents | 0c77619e803b |
children |
line wrap: on
line source
// D runtime support helpers bool LLVM_D_InitRuntime(); void LLVM_D_FreeRuntime(); llvm::Function* LLVM_D_GetRuntimeFunction(llvm::Module* target, const char* name); llvm::GlobalVariable* LLVM_D_GetRuntimeGlobal(llvm::Module* target, const char* name);