Mercurial > projects > ldc
view ir/irmodule.cpp @ 971:985104c0f1db
Fix the problems exposed by the callingconv1.d test case.
The first was that unless otherwise specified, inputs are assumed to be in
registers even if they specify a "matching output" that's in memory.
While testing that fix, I also ran into a bug causing the generated "matching
output" for any input was always the first one instead of the correct one.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Tue, 17 Feb 2009 00:08:20 +0100 |
parents | 1714836f2c0b |
children | ad7f2f1862d6 |
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( slice->getType(), true, LLGlobalValue::InternalLinkage, slice, ".modulefilename", gIR->module); } IrModule::~IrModule() { }