- Jul 07, 2006
-
-
Chris Lattner authored
llvm-svn: 29068
-
- Jul 28, 2005
-
-
Reid Spencer authored
appended to a path string that didn't end in a slash, yielding invalid path names. Path contribute by Nicholas Riley. llvm-svn: 22539
-
- Jul 09, 2005
-
-
Jeff Cohen authored
2. Fix bug in eraseSuffix where it allows /path/.suffix to become /path/ llvm-svn: 22362
-
- Jul 08, 2005
-
-
Reid Spencer authored
exist but just return false instead. llvm-svn: 22361
-
Reid Spencer authored
1. Use isValid() to check validity of the resulting path name in the eraseSuffix even though we can't think of a case where eraseSuffix could possibly cause an invalid path name. 2. Rewrite isValid() to not use the deprecated realpath function any more. It now just uses isascii to make sure all the characters are legit. llvm-svn: 22359
-
Jeff Cohen authored
llvm-svn: 22357
-
Jeff Cohen authored
llvm-svn: 22355
-
Reid Spencer authored
This chagne just renames some sys::Path methods to ensure they are not misused. The Path documentation now divides methods into two dimensions: Path/Disk and accessor/mutator. Path accessors and mutators only operate on the Path object itself without making any disk accesses. Disk accessors and mutators will also access or modify the file system. Because of the potentially destructive nature of disk mutators, it was decided that all such methods should end in the work "Disk" to ensure the user recognizes that the change will occur on the file system. This patch makes that change. The method name changes are: makeReadable -> makeReadableOnDisk makeWriteable -> makeWriteableOnDisk makeExecutable -> makeExecutableOnDisk setStatusInfo -> setStatusInfoOnDisk createDirectory -> createDirectoryOnDisk createFile -> createFileOnDisk createTemporaryFile -> createTemporaryFileOnDisk destroy -> eraseFromDisk rename -> renamePathOnDisk These changes pass the Linux Deja Gnu tests. llvm-svn: 22354
-
Reid Spencer authored
Get rid of the difference between file paths and directory paths. The Path class now simply stores a path that can refer to either a file or a directory. This required various changes in the implementation and interface of the class with the corresponding impact to its users. Doxygen comments were also updated to reflect these changes. Interface changes are: appendDirectory -> appendComponent appendFile -> appendComponent elideDirectory -> eraseComponent elideFile -> eraseComponent elideSuffix -> eraseSuffix renameFile -> rename setDirectory -> set setFile -> set Changes pass Dejagnu and llvm-test/SingleSource tests. llvm-svn: 22349
-
- Jul 07, 2005
-
-
Reid Spencer authored
Change interface to Path class: readable -> canRead writable -> canWrite executable -> canExecute More (incremental) changes coming to close 495. llvm-svn: 22345
-
- Jun 02, 2005
-
-
Reid Spencer authored
configure seems to find it on Cygwin but linking against it fails. llvm-svn: 22189
-
- May 06, 2005
-
-
Misha Brukman authored
llvm-svn: 21704
-
- Apr 21, 2005
-
-
Reid Spencer authored
Standardize the error messages to be in "path: what failed: why" format. Also attempt to use the correct errno to ThrowErrno in situations where the errno value is erased by subsequent system calls. llvm-svn: 21385
-
- Apr 20, 2005
-
-
Misha Brukman authored
Patch by Markus Oberhumer. llvm-svn: 21377
-
Misha Brukman authored
Thanks to Markus Oberhumer for the patch! llvm-svn: 21370
-
- Mar 02, 2005
-
-
Reid Spencer authored
llvm-svn: 20397
-
- Jan 10, 2005
-
-
Reid Spencer authored
gdb debugger doesn't get confused on which file it is reading (the one in lib/System or the one in lib/System/{Win32,Unix}) llvm-svn: 19426
-
- Dec 27, 2004
-
-
Reid Spencer authored
* Ensure #includes are wrapped with appropriate HAVE_ guards * Ensure variations in "dirent" structure are accounted for. llvm-svn: 19158
-
- Dec 24, 2004
-
-
Reid Spencer authored
Merge implementations of isValid and GetTemporaryDirectory into this file. There is not any point having the operating system specific files for such little variation between the Unix family of systems. llvm-svn: 19134
-
- Dec 21, 2004
-
-
Reid Spencer authored
llvm-svn: 19079
-
- Dec 20, 2004
-
-
Misha Brukman authored
* llvm/Config/alloca.h already #includes config.h * Minor readability/stylistic changes llvm-svn: 19048
-
- Dec 16, 2004
-
-
Reid Spencer authored
const because they affect the file system, not the Path object. llvm-svn: 18973
-
- Dec 15, 2004
-
-
Reid Spencer authored
because LLVM should be agnostic to the needs of specific front ends. llvm-svn: 18968
-
Reid Spencer authored
createTemporaryFile semantics where it doesn't create a fully unique name if the basename doesn't exist. This functionality is now optionally provided by the boolean reuse_current parameter to createTemporaryFile and makeUnique. The default values differ because of the way these functions are used in LLVM. llvm-svn: 18961
-
Reid Spencer authored
* 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
-
- Dec 13, 2004
-
-
Reid Spencer authored
Implement three new functions to allow setting access/permission bits on the file referenced by a path. The makeReadable and makeExecutable methods replace the FileUtilities MakeFileReadable and MakeFileExecutable functions. The makeWritable function is new and provided for consistency since Path has a writable() method. llvm-svn: 18907
-
Reid Spencer authored
llvm-svn: 18885
-
Alkis Evlogimenos authored
properly (examples: "", ".", "a"). llvm-svn: 18883
-
Reid Spencer authored
* Correct the std::string constructor to take a const reference. llvm-svn: 18877
-
Reid Spencer authored
* Remove IsLibrary and GetLibraryPath, replaced by FindLibrary in ../Path.cpp \ * Implement GetSystemLibraryPaths and GetBytecodeLibraryPaths, instead of the \ GetSystemLibraryPath1 and GetSystemLibraryPath2 methods llvm-svn: 18862
-
- Dec 11, 2004
-
-
Reid Spencer authored
llvm-svn: 18785
-
- Dec 02, 2004
-
-
Reid Spencer authored
llvm-svn: 18422
-
- Nov 16, 2004
-
-
Reid Spencer authored
* Don't use variable length arrays (replaced with alloca) llvm-svn: 17901
-
Reid Spencer authored
* Clean up the StatusInfo constructor to construct all members and give them reasonable values. * Get rid of the Vector typedef and make the interface to getDirectoryContent use a std::set instead of a std::vector so the dir content is sorted. * Make the getStatusInfo method const and not return a useless boolean. llvm-svn: 17872
-
- Nov 15, 2004
-
-
Reid Spencer authored
returnn false if the file doesn't exist rather than throw ane exception. llvm-svn: 17809
-
- Nov 14, 2004
-
-
Reid Spencer authored
* Implement getDirectoryContents * Implement getStatusInfo * Implement setStatusInfo * Implement renameFile llvm-svn: 17780
-
- Nov 09, 2004
-
-
Reid Spencer authored
* Implement createTemporaryFile for mkstemp(3) functionality * Fix isBytecodeFile to accept llvc magic # (compressed) as bytecode. llvm-svn: 17654
-
- Nov 05, 2004
-
-
Reid Spencer authored
llvm-svn: 17498
-
- Sep 18, 2004
-
-
Reid Spencer authored
llvm-svn: 16395
-
- Sep 16, 2004
-
-
Reid Spencer authored
llvm-svn: 16381
-