summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32/Path.inc
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/System/Win32/Path.inc')
-rw-r--r--llvm/lib/System/Win32/Path.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/System/Win32/Path.inc b/llvm/lib/System/Win32/Path.inc
index b0cca0e3362..4760dfd93d6 100644
--- a/llvm/lib/System/Win32/Path.inc
+++ b/llvm/lib/System/Win32/Path.inc
@@ -287,8 +287,10 @@ Path::GetBitcodeLibraryPaths(std::vector<sys::Path>& Paths) {
Path
Path::GetLLVMDefaultConfigDir() {
- // TODO: this isn't going to fly on Windows
- return Path("/etc/llvm");
+ Path ret = GetUserHomeDirectory();
+ if(!ret.appendComponent(".llvm"))
+ assert(0 && "Failed to append .llvm");
+ return ret;
}
Path
OpenPOWER on IntegriCloud