view ir/irmodule.cpp @ 1556:4897323d47b5

ConstantAggregateZero moved back to LLVM 2.5-style API Requires LLVM >= 77635
author Benjamin Kramer <benny.kra@gmail.com>
date Fri, 31 Jul 2009 01:16:30 +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()
{
}