Mercurial > projects > ldc
view dmd/rmem.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 | b30fe7e1dbb9 |
children |
line wrap: on
line source
#ifndef __RMEM_H__ #define __RMEM_H__ // jam memory stuff here #include "mem.h" #if (defined (__SVR4) && defined (__sun)) #include <alloca.h> #endif #ifdef __MINGW32__ #include <malloc.h> #endif #endif // __RMEM_H__