| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 45418
|
|
|
|
| |
llvm-svn: 45182
|
|
|
|
| |
llvm-svn: 45168
|
|
|
|
|
|
| |
Almost all occurrences of "bytecode" in the sources have been eliminated.
llvm-svn: 37913
|
|
|
|
| |
llvm-svn: 36846
|
|
|
|
|
|
| |
Implement the PathWithStatus class and its use throughout lib/System.
llvm-svn: 35742
|
|
|
|
|
|
|
|
| |
Make the sys::Path::getFileStatus function more efficient by having it
return a pointer to the FileStatus structure rather than copy it. Adjust
uses of the function accordingly. Also, fix some memory issues in sys::Path.
llvm-svn: 35476
|
|
|
|
|
|
|
| |
to the inode number on Unix and something far less unique on Windows. The
windows case needs to be improved.
llvm-svn: 35461
|
|
|
|
|
|
|
|
|
| |
* Add a method: bool isAbsolute() const, which determines if the path name
is absolute or not.
* Implement caching of file status information in the Path object. Allow it
to be updated forcefully or lazily re-fetched from the cached value.
llvm-svn: 35456
|
|
|
|
|
|
|
| |
Final removal of exceptions from lib/System and adjustment of users to
accommodate.
llvm-svn: 29846
|
|
|
|
|
|
|
| |
Eliminate exception throwing from Path::renamePathOnDisk and adjust its
users correspondingly.
llvm-svn: 29843
|
|
|
|
|
|
| |
Remove exception throwing from Path::getDirectoryContents and its users.
llvm-svn: 29841
|
|
|
|
|
|
|
| |
Remove exceptions from the Path::create*OnDisk methods. Update their users
to handle error messages via arguments and result codes.
llvm-svn: 29840
|
|
|
|
|
|
| |
Change the Path::make*OnDisk methods exception free and adjust their usage.
llvm-svn: 29836
|
|
|
|
|
|
| |
adjust users of it to compensate.
llvm-svn: 29831
|
|
|
|
| |
llvm-svn: 29808
|
|
|
|
|
|
| |
the erasure of non-file paths like /dev/null.
llvm-svn: 29539
|
|
|
|
| |
llvm-svn: 29447
|
|
|
|
| |
llvm-svn: 29442
|
|
|
|
| |
llvm-svn: 29402
|
|
|
|
| |
llvm-svn: 29400
|
|
|
|
|
|
|
|
| |
instead of throwing an exception. This reduces the amount of code that is
exposed to exceptions (e.g. FileUtilities), though it is clearly only one step
along the way.
llvm-svn: 29395
|
|
|
|
|
|
| |
don't exist.
llvm-svn: 29068
|
|
|
|
|
|
|
|
|
| |
appended to a path string that didn't end in a slash, yielding invalid
path names.
Path contribute by Nicholas Riley.
llvm-svn: 22539
|
|
|
|
|
|
| |
2. Fix bug in eraseSuffix where it allows /path/.suffix to become /path/
llvm-svn: 22362
|
|
|
|
|
|
| |
exist but just return false instead.
llvm-svn: 22361
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 22357
|
|
|
|
| |
llvm-svn: 22355
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
Change interface to Path class:
readable -> canRead
writable -> canWrite
executable -> canExecute
More (incremental) changes coming to close 495.
llvm-svn: 22345
|
|
|
|
|
|
| |
configure seems to find it on Cygwin but linking against it fails.
llvm-svn: 22189
|
|
|
|
| |
llvm-svn: 21704
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Patch by Markus Oberhumer.
llvm-svn: 21377
|
|
|
|
|
|
| |
Thanks to Markus Oberhumer for the patch!
llvm-svn: 21370
|
|
|
|
| |
llvm-svn: 20397
|
|
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
|