System/Path/Windows: Implement GetLLVMDefaultConfigDir.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Tue, 9 Nov 2010 15:11:42 +0000 (15:11 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Tue, 9 Nov 2010 15:11:42 +0000 (15:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118507 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/Win32/Path.inc

index b0cca0e33624e5ee3b114f92ab528a920ea771c4..4760dfd93d6d66a349ae3aaaaad80862af9fe04b 100644 (file)
@@ -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