summaryrefslogtreecommitdiff
path: root/lib/System
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-11-09 15:11:42 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-11-09 15:11:42 +0000
commit525ba5748cf122e195b51c0283bab91ac1c17b5f (patch)
tree489afeb4e9a9b99a9c3c8c010369e1778aaf3e12 /lib/System
parent05283c2a2b3b68666cc137accbb87857c34e3872 (diff)
downloadllvm-525ba5748cf122e195b51c0283bab91ac1c17b5f.tar.gz
llvm-525ba5748cf122e195b51c0283bab91ac1c17b5f.tar.bz2
llvm-525ba5748cf122e195b51c0283bab91ac1c17b5f.tar.xz
System/Path/Windows: Implement GetLLVMDefaultConfigDir.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r--lib/System/Win32/Path.inc6
1 files changed, 4 insertions, 2 deletions
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<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