| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
is especially needed for bugpoint. This partly implements PR688
llvm-svn: 34349
|
|
|
|
| |
llvm-svn: 32225
|
|
|
|
| |
llvm-svn: 30321
|
|
|
|
|
|
|
| |
the process in addition to disabling core file emission. This speeds up
bugpoint on default-configured macs by several orders of magnitude.
llvm-svn: 30317
|
|
|
|
|
|
|
| |
Make the Win32 code exception free (untested/uncompiled) which forced some
interface changes which had ripple effect. This should be the last of 797.
llvm-svn: 29884
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
just return MinTime if that should ever happen.
llvm-svn: 29826
|
|
|
|
|
|
| |
Make MappedFile not throw any exceptions.
llvm-svn: 29816
|
|
|
|
|
|
|
| |
Fix a bug in my last patch that botched file redirection by using explicit
scoping of if statements.
llvm-svn: 29815
|
|
|
|
| |
llvm-svn: 29808
|
|
|
|
|
|
|
| |
Remove all exception code from Program.inc and implement its new interface
with an ErrMsg string argument.
llvm-svn: 29790
|
|
|
|
|
|
|
|
| |
Make sys::Program::ExecuteAndWait not throw exceptions and update any
affected code. It now return -9999 to signal that the program couldn't be
executed. Only one case (in bugpoint) actually examines the result code.
llvm-svn: 29785
|
|
|
|
| |
llvm-svn: 29541
|
|
|
|
|
|
|
|
|
|
|
| |
the removal of directories. Using std::remove is indiscriminate and can
lead to the removal of things like /dev/null if run as root. The
Path::eraseFromDisk method ensures that we only ever remove regular files
or directories, but never character or block special nodes. This should
clear up the problem with usage like: llvm-as -o /dev/null which is used
in the llvm-test makefiles.
llvm-svn: 29540
|
|
|
|
|
|
| |
the erasure of non-file paths like /dev/null.
llvm-svn: 29539
|
|
|
|
| |
llvm-svn: 29447
|
|
|
|
| |
llvm-svn: 29443
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
"access"). Instead, just let the open call fail if the file doesn't exist.
This reduces the # syscalls executed.
llvm-svn: 29173
|
|
|
|
|
|
| |
spacing
llvm-svn: 29172
|
|
|
|
|
|
| |
the size, not the whole stat buffer.
llvm-svn: 29171
|
|
|
|
|
|
| |
good.
llvm-svn: 29170
|
|
|
|
| |
llvm-svn: 29169
|
|
|
|
| |
llvm-svn: 29129
|
|
|
|
|
|
| |
don't exist.
llvm-svn: 29068
|
|
|
|
| |
llvm-svn: 29058
|
|
|
|
|
|
|
|
| |
the Signals module that registered the handlers would cause the stack trace
to be generated. Now, you must explicitly call PrintStackTraceOnErrorSignal
in order for that to happen.
llvm-svn: 28810
|
|
|
|
|
|
|
| |
Use execve when explicit environment variables ptr is available. Otherwise
just use execv.
llvm-svn: 28740
|
|
|
|
|
|
|
|
|
|
|
|
| |
Provide new llvm::sys::Program facilities for converting the stdout and
stdin to binary mode. There is no standard way to do this and the available
mechanisms are platform specific. Adjust the bytecode reader and writer to
use these methods when their input is stdin or output is stdout. THis avoids
the problem with \n writing CRLF to a bytecode file on windows.
Patch Contributed by Michael Smith.
llvm-svn: 28722
|
|
|
|
|
|
| |
handle it. Just silently fail.
llvm-svn: 28291
|
|
|
|
| |
llvm-svn: 28260
|
|
|
|
| |
llvm-svn: 28257
|
|
|
|
|
|
|
|
| |
* Allow the ExecuteAndWait to return negative values if a signal is
detected as the reason for the child termination. This is needed to
support bugpoint detecting bad things in its child processes.
llvm-svn: 24960
|
|
|
|
|
|
|
| |
dependent portion of the lib/Support/SlowOperationTimer code into the
lib/System implementation where it can be ported to different platforms.
llvm-svn: 24937
|
|
|
|
|
|
| |
that actually make sense.
llvm-svn: 24352
|
|
|
|
|
|
| |
the default allocator uses mmap.
llvm-svn: 24349
|
|
|
|
|
|
| |
build will not fail
llvm-svn: 22578
|
|
|
|
| |
llvm-svn: 22554
|
|
|
|
|
|
|
|
|
| |
appended to a path string that didn't end in a slash, yielding invalid
path names.
Path contribute by Nicholas Riley.
llvm-svn: 22539
|