Mercurial > projects > ldc
view ir/irmodule.cpp @ 1639:41145d30acb8
Merge.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Mon, 08 Mar 2010 20:09:18 +0100 |
parents | ad7f2f1862d6 |
children |
line wrap: on
line source
#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() { }