|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| | llvm-svn: 68175 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | - Make type declarations match the struct/class keyword of the definition.
 - Move AddSignalHandler into the namespace where it belongs.
 - Correctly call functions from template base.
 - Some other small changes.
With this patch, LLVM and Clang should build properly and with far less noise under VS2008.
llvm-svn: 67347 | 
| | 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | Cleanup some warning.
Remark: when struct/class are declared differently than they are defined, this make problem for VC++ since it seems to mangle class differently that struct. These error are very hard to understand and find. So please, try to keep your definition/declaration in sync.
Only tested with VS2008. hope it does not break anything. feel free to revert.
llvm-svn: 64554 | 
| | 
| 
| 
| | llvm-svn: 64366 | 
| | 
| 
| 
| 
| 
| | 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: 63325 | 
| | 
| 
| 
| | llvm-svn: 63269 | 
| | 
| 
| 
| | llvm-svn: 62776 | 
| | 
| 
| 
| | llvm-svn: 61991 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| | llvm-svn: 59291 | 
| | 
| 
| 
| 
| 
| | LLVMSystem.
llvm-svn: 59159 | 
| | 
| 
| 
| 
| 
| | malloc'ed memory.
llvm-svn: 58805 | 
| | 
| 
| 
| | llvm-svn: 58682 | 
| | 
| 
| 
| | llvm-svn: 58563 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| 
| 
| | Patch by Samuel Tardieu.
llvm-svn: 57291 | 
| | 
| 
| 
| 
| 
| | sys::Memory::setExecutable on Win32 platform.
llvm-svn: 57047 | 
| | 
| 
| 
| 
| 
| 
| | this handling to work properly for modifying stub functions, relocations
back to entry points after JIT compilation, etc..
llvm-svn: 57013 | 
| | 
| 
| 
| | llvm-svn: 56957 | 
| | 
| 
| 
| 
| 
| 
| | & version as strings.
 - Win32 code is untested.
llvm-svn: 56942 | 
| | 
| 
| 
| | llvm-svn: 56419 | 
| | 
| 
| 
| 
| 
| | 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: 53924 | 
| | 
| 
| 
| | llvm-svn: 53385 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | bc files for modules with a target triple that indicates they are for
darwin.  The reader unconditionally handles this, and the writer could
turn this on for more targets if we care.
This change has two benefits for darwin:
1) it allows us to encode the cpu type of the file in an easy to read
   place that doesn't require decoding the bc file.
2) it works around a bug (IMO) in darwin's AR where it is incapable of
   handling files that are not a multiple of 8 bytes long.  BC files
   are only guaranteed to be multiples of 4 bytes long.
llvm-svn: 53275 | 
| | 
| 
| 
| | llvm-svn: 52847 | 
| | 
| 
| 
| 
| 
| | Patch by Hasso Tepper!
llvm-svn: 52781 | 
| | 
| 
| 
| | llvm-svn: 52775 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | This patch add supports for single architecture mach-o files (the current implementation only support Universal Binary), and solve the signature conflict between java class and Universal Binary magics.
Note that this function will always returned dynamic library for Universal Binaries (like the current implementation) because the binary type is not include in the file header."
Patch by Jean-Daniel Dupas!
llvm-svn: 52766 | 
| | 
| 
| 
| | llvm-svn: 52733 |