summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Path.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-15 01:50:13 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-15 01:50:13 +0000
commitf66d93239e0c2d6aadda89e8b0e5890200700422 (patch)
tree94d4e8b7780c41f115813bc0db3746405b7d571c /llvm/lib/System/Path.cpp
parent320a20ac454b1cbad9e65a889f6b622caf10b2e0 (diff)
downloadbcm5719-llvm-f66d93239e0c2d6aadda89e8b0e5890200700422.tar.gz
bcm5719-llvm-f66d93239e0c2d6aadda89e8b0e5890200700422.zip
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. llvm-svn: 18947
Diffstat (limited to 'llvm/lib/System/Path.cpp')
-rw-r--r--llvm/lib/System/Path.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/System/Path.cpp b/llvm/lib/System/Path.cpp
index d0ee1a3ae89..1c2b00e6456 100644
--- a/llvm/lib/System/Path.cpp
+++ b/llvm/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");
OpenPOWER on IntegriCloud