forked from OSchip/llvm-project
Remove unnecessary ClangLibdirSuffix variable.
Twine + const char * is supported. llvm-svn: 244110
This commit is contained in:
parent
4280a96468
commit
a910741cea
|
@ -1085,13 +1085,11 @@ std::string CompilerInvocation::GetResourcesPath(const char *Argv0,
|
|||
// Compute the path to the resource directory.
|
||||
StringRef ClangResourceDir(CLANG_RESOURCE_DIR);
|
||||
SmallString<128> P(Dir);
|
||||
if (ClangResourceDir != "") {
|
||||
if (ClangResourceDir != "")
|
||||
llvm::sys::path::append(P, ClangResourceDir);
|
||||
} else {
|
||||
StringRef ClangLibdirSuffix(CLANG_LIBDIR_SUFFIX);
|
||||
llvm::sys::path::append(P, "..", Twine("lib") + ClangLibdirSuffix, "clang",
|
||||
CLANG_VERSION_STRING);
|
||||
}
|
||||
else
|
||||
llvm::sys::path::append(P, "..", Twine("lib") + CLANG_LIBDIR_SUFFIX,
|
||||
"clang", CLANG_VERSION_STRING);
|
||||
|
||||
return P.str();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue