[llvm-commits] [llvm] r118507 - /llvm/trunk/lib/System/Win32/Path.inc

Michael J. Spencer bigcheesegs at gmail.com
Tue Nov 9 07:11:42 PST 2010


Author: mspencer
Date: Tue Nov  9 09:11:42 2010
New Revision: 118507

URL: http://llvm.org/viewvc/llvm-project?rev=118507&view=rev
Log:
System/Path/Windows: Implement GetLLVMDefaultConfigDir.

Modified:
    llvm/trunk/lib/System/Win32/Path.inc

Modified: llvm/trunk/lib/System/Win32/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Win32/Path.inc?rev=118507&r1=118506&r2=118507&view=diff
==============================================================================
--- llvm/trunk/lib/System/Win32/Path.inc (original)
+++ llvm/trunk/lib/System/Win32/Path.inc Tue Nov  9 09:11:42 2010
@@ -287,8 +287,10 @@
 
 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





More information about the llvm-commits mailing list