diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-15 01:50:13 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-15 01:50:13 +0000 |
commit | c29befb554c025da801737bc86a8215d1dc6038c (patch) | |
tree | c4fe20c6d360ddbc8e7203d8a7b7d95950db9773 /lib/System/Path.cpp | |
parent | 67f6d3ad30941e0ac6d36939c271eec7d7b8a0e2 (diff) |
For PR351:
* Fix implementation and documentation about LLVMGCCDIR/bytecode-libs
* Add the makeUnique method, replacement for getUniqueFilename in Support.
* Add the sys::CopyFile function, replacement for CopyFile in Support.
* Move GetLLVMConfigDir() into generic code area since its generic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Path.cpp')
-rw-r--r-- | lib/System/Path.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/System/Path.cpp b/lib/System/Path.cpp index d0ee1a3ae8..1c2b00e645 100644 --- a/lib/System/Path.cpp +++ b/lib/System/Path.cpp @@ -23,6 +23,14 @@ using namespace sys; //=== independent code. //===----------------------------------------------------------------------===// +Path +Path::GetLLVMConfigDir() { + Path result; + if (result.setDirectory(LLVM_ETCDIR)) + return result; + return GetLLVMDefaultConfigDir(); +} + LLVMFileType sys::IdentifyFileType(const char*magic, unsigned length) { assert(magic && "Invalid magic number string"); |