зеркало из https://github.com/microsoft/clang-1.git
Make logic smaller.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175839 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
644367c198
Коммит
025b3d4f52
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче