| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Implemented by moving the code out of static functions into methods of Program
class.
llvm-svn: 76340
|
| |
|
|
| |
llvm-svn: 76229
|
| |
|
|
|
|
|
|
| |
- 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
|
| |
|
|
| |
llvm-svn: 75055
|
| |
|
|
|
|
|
|
| |
Windows variant, strerror_s, but I couldn't test that.
I'll update configure and config.h.in in a subsequent patch.
llvm-svn: 74621
|
| |
|
|
|
|
| |
Patch by Xerxes Ranby.
llvm-svn: 74283
|
| |
|
|
|
|
| |
Windows people, please double-check/patch this.
llvm-svn: 74209
|
| |
|
|
| |
llvm-svn: 73710
|
| |
|
|
|
|
|
|
| |
template parameter specifying whether this mutex
should become a no-op when not running in multithreaded mode. Make sys::Mutex a typedef of SmartMutex<false>, to preserve source compatibility.
llvm-svn: 73709
|
| |
|
|
| |
llvm-svn: 73545
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
specific one. The GNU one is chosen when _GNU_SOURCE is defined. g++ always
defines _GNU_SOURCE on linux platforms because glibc's headers won't compile
in C++ mode without it. The GNU strerror_r doesn't always modify the buffer
which causes empty error messages on linux.
This patch changes MakeErrMsg to use the return value of strerror_r to get
the string instead of assuming the buffer will be modified, on GLIBC.
Patch by Benjamin Kramer!
llvm-svn: 73396
|
| |
|
|
|
|
| |
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
|