Cleanup: Remove unused code in backend, silence some warnings.

This removed quite some clutter that has presumably piled up because LDC is seldom built with a lot of warnings enabled due to DMDFE.
This commit is contained in:
David Nadlinger
2011-04-24 12:21:33 +02:00
parent 009ce6e161
commit 7a24e12736
15 changed files with 25 additions and 69 deletions

View File

@@ -812,5 +812,5 @@ void Module::genmoduleinfo()
std::vector<LLConstant*> appendInits(1, magicinit);
LLConstant* appendInit = LLConstantArray::get(appendArrTy, appendInits);
std::string appendName("llvm.global_ctors");
llvm::GlobalVariable* appendVar = new llvm::GlobalVariable(*gIR->module, appendArrTy, true, llvm::GlobalValue::AppendingLinkage, appendInit, appendName);
new llvm::GlobalVariable(*gIR->module, appendArrTy, true, llvm::GlobalValue::AppendingLinkage, appendInit, appendName);
}