Don't use llvm::getGlobalContext() anymore

This commit is contained in:
Benjamin Kramer
2009-07-13 20:16:15 +02:00
parent 331319dab1
commit 0ee2f34611
21 changed files with 59 additions and 48 deletions

View File

@@ -16,6 +16,7 @@
#include "llvm/Support/CallSite.h"
namespace llvm {
class LLVMContext;
class TargetMachine;
}
@@ -108,6 +109,9 @@ struct IRState
const LLStructType* mutexType;
const LLStructType* moduleRefType;
// helper to get the LLVMContext of the module
llvm::LLVMContext& context() const { return module->getContext(); }
// functions
typedef std::vector<IrFunction*> FunctionVector;
FunctionVector functions;