diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-11-09 15:11:42 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-11-09 15:11:42 +0000 |
commit | d7e3b546358451dcde8b89404c6339cbb0feb58c (patch) | |
tree | b20d67d625eb1003d6baa5e475ee332e9671985f | |
parent | 86cdb427379d0028d9ec5ed56cb374071fb3bdc4 (diff) | |
download | bcm5719-llvm-d7e3b546358451dcde8b89404c6339cbb0feb58c.tar.gz bcm5719-llvm-d7e3b546358451dcde8b89404c6339cbb0feb58c.zip |
System/Path/Windows: Implement GetLLVMDefaultConfigDir.
llvm-svn: 118507
-rw-r--r-- | llvm/lib/System/Win32/Path.inc | 6 |
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 |