Added bitcode filename to very verbose logging.

Fixed -O<n> switches from llvm 2.4.
Removed md5 from the kdevelop project filelist.
This commit is contained in:
Tomas Lindquist Olsen
2008-07-26 15:02:57 +02:00
parent 5ddcdea5f2
commit 70f16e36fb
3 changed files with 13 additions and 10 deletions

View File

@@ -108,21 +108,22 @@ int linkExecutable(const char* argv0)
switch(global.params.optimizeLevel)
{
case 0:
s = "-O0"; break;
args.push_back("-disable-opt");
args.push_back("-globaldce");
break;
case 1:
s = "-O1"; break;
args.push_back("-disable-opt");
args.push_back("-globaldce");
args.push_back("-mem2reg");
case 2:
s = "-O2"; break;
case 3:
s = "-O3"; break;
case 4:
s = "-O4"; break;
case 5:
s = "-O5"; break;
// use default optimization
break;
default:
assert(0);
}
args.push_back(s);
}
// inlining
@@ -156,6 +157,10 @@ int linkExecutable(const char* argv0)
args.push_back("-ldl");
args.push_back("-lm");
}
else if (global.params.isWindows)
{
// FIXME: I'd assume kernel32 etc
}
// object files
for (int i = 0; i < global.params.objfiles->dim; i++)