view ir/irmodule.cpp @ 836:14c3319ac1bb

This ''should'' fix #139 , I failed to produce a testcase, but I would imagine this to be correct, and it removes '''that''' error when building Hybrid.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 09 Dec 2008 03:01:19 +0100
parents b411c41a9716
children 1714836f2c0b
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);

    dwarfCompileUnit = NULL;
}

IrModule::~IrModule()
{
}