From 525ba5748cf122e195b51c0283bab91ac1c17b5f Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Tue, 9 Nov 2010 15:11:42 +0000 Subject: System/Path/Windows: Implement GetLLVMDefaultConfigDir. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118507 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/Win32/Path.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/System') diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc index b0cca0e336..4760dfd93d 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 -- cgit v1.2.3