Mercurial > projects > ldc
view ir/irmodule.cpp @ 1542:ba2a5d2fe748
raw_fd_ostream takes a force parameter now
Build fix for LLVM 75801.
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Wed, 15 Jul 2009 20:04:42 +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() { }