| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 79873
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
forcing them down into various .cpp files.
This change also:
1. Renames TimeValue::toString() and Path::toString() to ::str()
for similarity with the STL.
2. Removes all stream insertion support for sys::Path, forcing
clients to call .str().
3. Removes a use of Config/alloca.h from bugpoint, using smallvector
instead.
4. Weans llvm-db off <iostream>
sys::Path really needs to be gutted, but I don't have the desire to
do it at this point.
llvm-svn: 79869
|
| |
|
|
| |
llvm-svn: 78239
|
| |
|
|
| |
llvm-svn: 77405
|
| |
|
|
| |
llvm-svn: 77392
|
| |
|
|
|
|
|
|
| |
- Patch by Viktor Kutuzov!
- Minor tweak by me to add llvm_unreachable calls on FIXMEd error paths.
llvm-svn: 75424
|
| |
|
|
|
|
|
|
| |
reject paths with such characters in them. The attached patch removes the check from Path::isValid()."
patch by Benjamin Kramer!
llvm-svn: 75421
|
| |
|
|
|
|
| |
absolute or not, based on a patch by Gregory Curfman!
llvm-svn: 73368
|
| |
|
|
| |
llvm-svn: 72604
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
clang: error: unable to make temporary file: /etc/cc: can't make
unique filename: Permission denied
instead of
clang: error: unable to make temporary file: /etc/cc: can't make
unique filenamePermission denied
for example.
Also, audited the uses of MakeErrMsg to make the prefix strings
consistent (not end with newline/punctuation/space/": ").
llvm-svn: 69626
|
| |
|
|
|
|
| |
Ed Schouten!
llvm-svn: 65882
|
| |
|
|
|
|
|
|
| |
symlink. We really want the ultimate executable being run, not
the symlink. This lets clang find its headers when invoked through
a symlink. rdar://6602012
llvm-svn: 65017
|
| |
|
|
|
|
| |
"system() declared with attribute warn_unused_result."
llvm-svn: 64574
|
| |
|
|
| |
llvm-svn: 64573
|
| |
|
|
|
|
| |
Kovarththanan Rajaratnam!
llvm-svn: 54655
|
| |
|
|
| |
llvm-svn: 53973
|
| |
|
|
|
|
| |
existing directory then create new temp. file inside the directory.
llvm-svn: 53929
|
| |
|
|
| |
llvm-svn: 52847
|
| |
|
|
| |
llvm-svn: 52290
|
| |
|
|
| |
llvm-svn: 52288
|
| |
|
|
|
|
| |
include backslashes on Windows. This should fix llvm-ld problems on win32.
llvm-svn: 50960
|
| |
|
|
| |
llvm-svn: 50659
|
| |
|
|
| |
llvm-svn: 49354
|
| |
|
|
| |
llvm-svn: 49352
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This method allows one to create a directory, and optionally create all parent
directories that do not exist.
The original implementation would require that *all* directories along a path
are writable by the user, including directories that already exist. For example,
suppose we wanted to create the directory "/tmp/foo/bar", and the directory
"/tmp" already exists, but not "/tmp/foo". Since "/tmp" is writable by all
users, the original implementation would work, and create "/tmp/foo", followed
by "/tmp/bar".
A problem occurred, however if one wanted to created the directory
"/Users/myuser/bar" (or equivalently "/home/myuser/bar"), and "/Users/myuser"
already existed and is writable by the current user. The directory
"/User/myuser" is writable by the user, but "/User" is not. The original
implementation of createDirectoryOnDisk would return with failure since "/User"
is not writable, even though "/User/mysuser" is writable.
The new implementation works by recursively creating parents as needed, and thus
doesn't need to check the permissions on every directory in a path.
llvm-svn: 49162
|
| |
|
|
| |
llvm-svn: 49036
|
| |
|
|
|
|
| |
provides fast MappedFile::getFile for large files.
llvm-svn: 49034
|
| |
|
|
| |
llvm-svn: 49030
|
| |
|
|
| |
llvm-svn: 48328
|
| |
|
|
|
|
| |
main executable of a program. This needs to be implemented on windows.
llvm-svn: 47835
|
| |
|
|
| |
llvm-svn: 47662
|
| |
|
|
| |
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
|