mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-30 08:39:02 +02:00
Don't use llvm::getGlobalContext() anymore
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user