Integrate obj_includelib into its only caller.

This commit is contained in:
David Nadlinger
2013-02-15 01:27:15 +01:00
parent 7fd4fc81c3
commit 1a132d5d41
2 changed files with 6 additions and 12 deletions

View File

@@ -3341,15 +3341,6 @@ CONSTSTUB(AssocArrayLiteralExp);
//////////////////////////////////////////////////////////////////////////////////////////
void obj_includelib(const char* lib)
{
size_t n = strlen(lib)+3;
char *arg = static_cast<char *>(mem.malloc(n));
strcpy(arg, "-l");
strncat(arg, lib, n);
global.params.linkswitches->push(arg);
}
void backend_init()
{
// LLVM_D_InitRuntime is done in Module::genLLVMModule