mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-11-29 20:33:50 +01:00
First part of rename to LDC.
This commit is contained in:
+1
-1
@@ -9,5 +9,5 @@ enum
|
||||
LLVMva_copy,
|
||||
LLVMva_end,
|
||||
LLVMva_arg,
|
||||
LLVMllvmdc
|
||||
LLVMldc
|
||||
};
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ void linkModules(llvm::Module* dst, const Module_vector& MV)
|
||||
if (MV.empty())
|
||||
return;
|
||||
|
||||
llvm::Linker linker("llvmdc", dst);
|
||||
llvm::Linker linker("ldc", dst);
|
||||
|
||||
std::string err;
|
||||
for (Module_vector::const_iterator i=MV.begin(); i!=MV.end(); ++i)
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ using namespace llvm;
|
||||
// this function runs some or all of the std-compile-opts passes depending on the
|
||||
// optimization level given.
|
||||
|
||||
void llvmdc_optimize_module(Module* m, char lvl, bool doinline)
|
||||
void ldc_optimize_module(Module* m, char lvl, bool doinline)
|
||||
{
|
||||
if (!doinline && lvl < 0)
|
||||
return;
|
||||
|
||||
+1
-1
@@ -153,7 +153,7 @@ static const LLType* rt_dg2()
|
||||
|
||||
static void LLVM_D_BuildRuntimeModule()
|
||||
{
|
||||
M = new llvm::Module("llvmdc internal runtime");
|
||||
M = new llvm::Module("ldc internal runtime");
|
||||
|
||||
const LLType* voidTy = LLType::VoidTy;
|
||||
const LLType* boolTy = LLType::Int1Ty;
|
||||
|
||||
+1
-1
@@ -140,7 +140,7 @@ static LLGlobalVariable* dwarfCompileUnit(Module* m)
|
||||
if (srcpath.empty())
|
||||
srcpath = llvm::sys::Path::GetCurrentDirectory().toString();
|
||||
vals[4] = DtoConstStringPtr(srcpath.c_str(), "llvm.metadata");
|
||||
vals[5] = DtoConstStringPtr("LLVMDC (http://www.dsource.org/projects/llvmdc)", "llvm.metadata");
|
||||
vals[5] = DtoConstStringPtr("LDC (http://www.dsource.org/projects/llvmdc)", "llvm.metadata");
|
||||
|
||||
LLGlobalVariable* gv = emitDwarfGlobal(getDwarfCompileUnitType(), vals, "llvm.dbg.compile_unit");
|
||||
m->ir.irModule->dwarfCompileUnit = gv;
|
||||
|
||||
+2
-2
@@ -49,7 +49,7 @@
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// in gen/optimize.cpp
|
||||
void llvmdc_optimize_module(llvm::Module* m, char lvl, bool doinline);
|
||||
void ldc_optimize_module(llvm::Module* m, char lvl, bool doinline);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -152,7 +152,7 @@ void Module::genobjfile(int multiobj)
|
||||
}
|
||||
|
||||
// run optimizer
|
||||
llvmdc_optimize_module(ir.module, global.params.optimizeLevel, global.params.llvmInline);
|
||||
ldc_optimize_module(ir.module, global.params.optimizeLevel, global.params.llvmInline);
|
||||
|
||||
// verify the llvm
|
||||
if (!global.params.novalidate && (global.params.optimizeLevel >= 0 || global.params.llvmInline)) {
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
// in artistic.txt, or the GNU General Public License in gnu.txt.
|
||||
// See the included readme.txt for details.
|
||||
|
||||
// Modifications for LLVMDC:
|
||||
// Modifications for LDC:
|
||||
// Copyright (c) 2007 by Tomas Lindquist Olsen
|
||||
// tomas at famolsen dk
|
||||
|
||||
@@ -234,7 +234,7 @@ int TypeDArray::builtinTypeInfo()
|
||||
|
||||
Expression *createTypeInfoArray(Scope *sc, Expression *exps[], int dim)
|
||||
{
|
||||
assert(0); // done elsewhere in llvmdc
|
||||
assert(0); // done elsewhere in LDC
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user