[llvm-commits] CVS: llvm/lib/System/Path.cpp

Reid Spencer reid at x10sys.com
Tue Dec 14 17:50:25 PST 2004



Changes in directory llvm/lib/System:

Path.cpp updated: 1.11 -> 1.12
---
Log message:

For PR351: http://llvm.cs.uiuc.edu/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.


---
Diffs of the changes:  (+8 -0)

Index: llvm/lib/System/Path.cpp
diff -u llvm/lib/System/Path.cpp:1.11 llvm/lib/System/Path.cpp:1.12
--- llvm/lib/System/Path.cpp:1.11	Mon Dec 13 12:41:28 2004
+++ llvm/lib/System/Path.cpp	Tue Dec 14 19:50:13 2004
@@ -23,6 +23,14 @@
 //===          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");






More information about the llvm-commits mailing list