From: Michael J. Spencer Date: Tue, 9 Nov 2010 15:11:42 +0000 (+0000) Subject: System/Path/Windows: Implement GetLLVMDefaultConfigDir. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=525ba5748cf122e195b51c0283bab91ac1c17b5f;p=oota-llvm.git System/Path/Windows: Implement GetLLVMDefaultConfigDir. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118507 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc index b0cca0e3362..4760dfd93d6 100644 --- a/lib/System/Win32/Path.inc +++ b/lib/System/Win32/Path.inc @@ -287,8 +287,10 @@ Path::GetBitcodeLibraryPaths(std::vector& 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