view ir/irmodule.cpp @ 1594:9f7151d890ff

Added in forgotten json.c and json.h files so ldc compiles again.
author Robert Clipsham <robert@octarineparrot.com>
date Sat, 07 Nov 2009 14:21:56 +0000
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()
{
}