Mercurial > projects > ldc
view ir/irmodule.cpp @ 1651:cb960b882ca3 default tip
bindings were moved to dsource.org/projects/bindings/
author | Moritz Warning <moritzwarning@web.de> |
---|---|
date | Thu, 20 May 2010 20:05:03 +0200 |
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() { }