| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 91620
|
|
|
|
|
|
| |
is not used by anything performance sensitive, so just use std::string.
llvm-svn: 91528
|
|
|
|
|
|
| |
a fixed size buffer is perfectly fine.
llvm-svn: 91527
|
|
|
|
| |
llvm-svn: 90937
|
|
|
|
| |
llvm-svn: 90083
|
|
|
|
|
|
|
|
|
| |
case where realpath() fails. When this occurs we segfault trying to
create a std::string from a NULL pointer.
Fixes PR5635.
llvm-svn: 90082
|
|
|
|
|
|
| |
regards to comments from 89765 post review.
llvm-svn: 89848
|
|
|
|
| |
llvm-svn: 89786
|
|
|
|
| |
llvm-svn: 89765
|
|
|
|
|
|
| |
clang's testsuite.
llvm-svn: 81333
|
|
|
|
| |
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
|