mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
18 lines
404 B
C++
18 lines
404 B
C++
#include "gen/llvm.h"
|
|
#include "gen/tollvm.h"
|
|
#include "gen/irstate.h"
|
|
#include "ir/irmodule.h"
|
|
|
|
IrModule::IrModule(Module* module, const char* srcfilename)
|
|
{
|
|
M = module;
|
|
|
|
LLConstant* slice = DtoConstString(srcfilename);
|
|
fileName = new llvm::GlobalVariable(
|
|
*gIR->module, slice->getType(), true, LLGlobalValue::InternalLinkage, slice, ".modulefilename");
|
|
}
|
|
|
|
IrModule::~IrModule()
|
|
{
|
|
}
|