|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| ... |  | 
| | 
| 
| 
| 
| 
| | absolute or not, based on a patch by Gregory Curfman!
llvm-svn: 73368 | 
| | 
| 
| 
| | llvm-svn: 72854 | 
| | 
| 
| 
| | llvm-svn: 72604 | 
| | 
| 
| 
| | llvm-svn: 72332 | 
| | 
| 
| 
| 
| 
| 
| | width of a terminal. Don't try to get the width of a terminal if we
don't have this header.
llvm-svn: 72018 | 
| | 
| 
| 
| 
| 
| | fix Clang PRs 4148 and 4183.
llvm-svn: 71448 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| 
| 
| | patch by Alexei Svitkine!
llvm-svn: 68929 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | llvm::sys::getOS{Name,Version}.
Right now the implementation just derives from LLVM_HOSTTRIPLE (which
is wrong, but it doesn't look like we have a define for the target
triple). Ideally this routine would actually be able to compute the
triple for targets we care about.
llvm-svn: 68118 | 
| | 
| 
| 
| | llvm-svn: 67510 | 
| | 
| 
| 
| 
| 
| 
| | were when we came around, not to their default handler.  This 
should fix PR3848
llvm-svn: 67509 | 
| | 
| 
| 
| | llvm-svn: 67508 | 
| | 
| 
| 
| 
| 
| | windows side.
llvm-svn: 66386 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | signal handlers to prevent reentrance on unrelated things (a sigabort
where the handle bus errors) also, clear the signal mask so that the
signal doesn't infinitely reissue.  This fixes rdar://6654827 -
Crash causes clang to loop
llvm-svn: 66330 | 
| | 
| 
| 
| | llvm-svn: 66171 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | arbitrary functions to be run when a crash happens.  Delete 
RemoveDirectoryOnSignal as it is dead and has never had clients.
Change PrintStackTraceOnErrorSignal to be implemented in terms of
AddSignalHandler.
I updated the Win32 versions of these APIs, but can't test them.
If there are any problems, I'd be happy to fix them as well.
llvm-svn: 66072 | 
| | 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| 
| 
| | This fixes PR3535.
llvm-svn: 64224 | 
| | 
| 
| 
| | llvm-svn: 64101 | 
| | 
| 
| 
| 
| 
| | Also removes some trailing whitespace and fixes one 80-column violation.
llvm-svn: 64094 | 
| | 
| 
| 
| | llvm-svn: 62776 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | since %p isn't formatted consistently, but obviously plain %x is wrong.
PRIxPTR with a cast to uintptr_t would work here, but that requires
inconvenient build-system changes. %lu works on all current and
foreseable future hosts.
llvm-svn: 60616 | 
| | 
| 
| 
| 
| 
| | Wesley Peck, with a few fixes by me.
llvm-svn: 60605 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | is re-written by the callback to branch directly to the compiled code
in future invocations.
Added back in range-based memory permission functions for the updating of
the stub on Darwin.
llvm-svn: 57846 | 
| | 
| 
| 
| 
| 
| 
| | this handling to work properly for modifying stub functions, relocations
back to entry points after JIT compilation, etc..
llvm-svn: 57013 | 
| | 
| 
| 
| 
| 
| 
| | & version as strings.
 - Win32 code is untested.
llvm-svn: 56942 | 
| | 
| 
| 
| 
| 
| | privilege from read / write to read / executable.
llvm-svn: 56303 | 
| | 
| 
| 
| | llvm-svn: 56244 | 
| | 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | error that caused it to redirect stderr to stdout too often.
This fix is applied identically to the win32 code as well, but that is
untested.
--Thi line, and those below, will be ignored--
M    System/Unix/Program.inc
M    System/Win32/Program.inc
llvm-svn: 52233 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | functional changes. Win32 code is untested, but should work fine.
In the unix variant, rename RedirectFD to RedirectIO and let that function
handle empty and null paths instead of doing that in the caller 3 times. This
is the same as win32 already does it.
In the win32 variant, use Path::isEmpty() instead of checking the resulting
c_str() manually. This is the same as unix already does it.
llvm-svn: 52230 | 
| | 
| 
| 
| | llvm-svn: 51709 | 
| | 
| 
| 
| 
| 
| | function to flush a specified std::ostream.
llvm-svn: 51705 | 
| | 
| 
| 
| | llvm-svn: 51088 | 
| | 
| 
| 
| 
| 
| 
| | several things that were neither in an anonymous namespace nor static
but not intended to be global.
llvm-svn: 51017 | 
| | 
| 
| 
| 
| 
| | include backslashes on Windows. This should fix llvm-ld problems on win32.
llvm-svn: 50960 | 
| | 
| 
| 
| | llvm-svn: 50659 | 
| | 
| 
| 
| | llvm-svn: 49568 | 
| | 
| 
| 
| | llvm-svn: 49496 | 
| | 
| 
| 
| | 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 |