Mercurial > projects > ldc
view ir/irsymbol.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 | 46f6365a50d7 |
children |
line wrap: on
line source
#ifndef __LDC_IR_IRSYMBOL_H__ #define __LDC_IR_IRSYMBOL_H__ #include "ir/ir.h" /// Base class for all symbols. class IrSymbol { public: /// IrSymbol(Ir* ir) : ir(ir) {} /// Migrate symbols to current module if necessary. virtual void migrate() = 0; protected: /// Ir* ir; }; #endif