Make logic smaller.

llvm-svn: 175839
This commit is contained in:
Eric Christopher 2013-02-22 00:24:40 +00:00
parent 3ae54b2f41
commit e30f61cb36
1 changed files with 4 additions and 7 deletions

View File

@ -2335,13 +2335,10 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
C.getArgs().hasArg(options::OPT_S)) {
if (Output.isFilename()) {
CmdArgs.push_back("-coverage-file");
if (C.getArgs().hasArg(options::OPT_no_canonical_prefixes)) {
CmdArgs.push_back(Args.MakeArgString(Output.getFilename()));
} else {
SmallString<128> absFilename(Output.getFilename());
llvm::sys::fs::make_absolute(absFilename);
CmdArgs.push_back(Args.MakeArgString(absFilename));
}
SmallString<128> CoverageFilename(Output.getFilename());
if (!C.getArgs().hasArg(options::OPT_no_canonical_prefixes))
llvm::sys::fs::make_absolute(CoverageFilename);
CmdArgs.push_back(Args.MakeArgString(CoverageFilename));
}
}