summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-08-05 20:06:56 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-08-05 20:06:56 +0000
commita910741ceac549fd0e6cd464e54c8cdec7dc6eb2 (patch)
tree224fe718713f4175b9d9aef383e7e9f7ba8edc67 /clang/lib/Frontend/CompilerInvocation.cpp
parent4280a96468b00f8afb097b8fef737a4b5454b5e4 (diff)
downloadbcm5719-llvm-a910741ceac549fd0e6cd464e54c8cdec7dc6eb2.tar.gz
bcm5719-llvm-a910741ceac549fd0e6cd464e54c8cdec7dc6eb2.zip
Remove unnecessary ClangLibdirSuffix variable.
Twine + const char * is supported. llvm-svn: 244110
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 0f09db2bff3..31793eac103 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -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();
}
OpenPOWER on IntegriCloud