Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (14 sloc) 0.404 kB
#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()
{
}
Jump to Line
Something went wrong with that request. Please try again.