[llvm] r264352 - Fix typo: XDS -> XDG
Sean Silva via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 24 15:27:27 PDT 2016
Author: silvas
Date: Thu Mar 24 17:27:27 2016
New Revision: 264352
URL: http://llvm.org/viewvc/llvm-project?rev=264352&view=rev
Log:
Fix typo: XDS -> XDG
Patch by Robert Ma <bob1211 at gmail.com>!
Modified:
llvm/trunk/lib/Support/Unix/Path.inc
Modified: llvm/trunk/lib/Support/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Path.inc?rev=264352&r1=264351&r2=264352&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Path.inc (original)
+++ llvm/trunk/lib/Support/Unix/Path.inc Thu Mar 24 17:27:27 2016
@@ -586,12 +586,12 @@ static bool getDarwinConfDir(bool TempDi
}
static bool getUserCacheDir(SmallVectorImpl<char> &Result) {
- // First try using XDS_CACHE_HOME env variable,
+ // First try using XDG_CACHE_HOME env variable,
// as specified in XDG Base Directory Specification at
// http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
- if (const char *XdsCacheDir = std::getenv("XDS_CACHE_HOME")) {
+ if (const char *XdgCacheDir = std::getenv("XDG_CACHE_HOME")) {
Result.clear();
- Result.append(XdsCacheDir, XdsCacheDir + strlen(XdsCacheDir));
+ Result.append(XdgCacheDir, XdgCacheDir + strlen(XdgCacheDir));
return true;
}
More information about the llvm-commits
mailing list