Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Removed trailing whitespace from Makefiles. | Misha Brukman | 2009-01-09 | 1 | -2/+2 | |
| | | | | llvm-svn: 61991 | |||||
* | Don't use plain %x to print pointer values. I had changed it from %p | Dan Gohman | 2008-12-05 | 1 | -1/+2 | |
| | | | | | | | | | 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 | |||||
* | Demangle and pretty-print symbols in internal backtraces. Patch by | Dan Gohman | 2008-12-05 | 1 | -0/+44 | |
| | | | | | | Wesley Peck, with a few fixes by me. llvm-svn: 60605 | |||||
* | ARM / Mac OS X also wants to invalidate icache after jitting. | Evan Cheng | 2008-11-14 | 1 | -20/+22 | |
| | | | | llvm-svn: 59291 | |||||
* | CMake: when bulding shared libraries on non-WIN32 systems, link dl to | Oscar Fuentes | 2008-11-12 | 1 | -0/+4 | |
| | | | | | | LLVMSystem. llvm-svn: 59159 | |||||
* | plug leakage of mutex data. pthread_mutex_destroy() doesnt free our ↵ | Nuno Lopes | 2008-11-06 | 1 | -1/+1 | |
| | | | | | | malloc'ed memory. llvm-svn: 58805 | |||||
* | hasDisassembler should return false if disassembler isn't available. | Evan Cheng | 2008-11-04 | 1 | -0/+4 | |
| | | | | llvm-svn: 58682 | |||||
* | Silence a warning | Anton Korobeynikov | 2008-11-02 | 1 | -4/+6 | |
| | | | | llvm-svn: 58563 | |||||
* | Update the stub and callback code to handle lazy compilation. The stub | Jim Grosbach | 2008-10-20 | 2 | -2/+30 | |
| | | | | | | | | | | 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 | |||||
* | Add <cstdio> include where needed by gcc-4.4. | Duncan Sands | 2008-10-08 | 1 | -0/+1 | |
| | | | | | | Patch by Samuel Tardieu. llvm-svn: 57291 | |||||
* | Add implementations for sys::Memory::setWritable and ↵ | Argyrios Kyrtzidis | 2008-10-04 | 1 | -0/+8 | |
| | | | | | | sys::Memory::setExecutable on Win32 platform. llvm-svn: 57047 | |||||
* | On Darwin ARM, memory needs special handling to do JIT. This patch expands | Jim Grosbach | 2008-10-03 | 2 | -12/+25 | |
| | | | | | | | this handling to work properly for modifying stub functions, relocations back to entry points after JIT compilation, etc.. llvm-svn: 57013 | |||||
* | CMake: Added Host.cpp to lib/System/CMakeLists.txt. | Oscar Fuentes | 2008-10-02 | 1 | -0/+1 | |
| | | | | llvm-svn: 56957 | |||||
* | Add llvm::sys::{osName,osVersion} for retrieving operating system name | Daniel Dunbar | 2008-10-02 | 3 | -0/+101 | |
| | | | | | | | & version as strings. - Win32 code is untested. llvm-svn: 56942 | |||||
* | Initial support for the CMake build system. | Oscar Fuentes | 2008-09-22 | 1 | -0/+13 | |
| | | | | llvm-svn: 56419 | |||||
* | Preliminary support for systems which require changing JIT memory regions ↵ | Evan Cheng | 2008-09-18 | 2 | -0/+40 | |
| | | | | | | privilege from read / write to read / executable. llvm-svn: 56303 | |||||
* | AllocateRWXMemory -> AllocateRWX. | Evan Cheng | 2008-09-16 | 1 | -1/+1 | |
| | | | | llvm-svn: 56244 | |||||
* | add a helper method to sys::Path for clang, patch by | Chris Lattner | 2008-08-11 | 2 | -0/+13 | |
| | | | | | | Kovarththanan Rajaratnam! llvm-svn: 54655 | |||||
* | Create temp. file in current path. | Devang Patel | 2008-07-24 | 1 | -6/+3 | |
| | | | | llvm-svn: 53973 | |||||
* | While creating temp. file on disk, if the current filename points to a ↵ | Devang Patel | 2008-07-22 | 1 | -2/+8 | |
| | | | | | | existing directory then create new temp. file inside the directory. llvm-svn: 53929 | |||||
* | Handle bitcode wrappers. | Devang Patel | 2008-07-22 | 1 | -1/+4 | |
| | | | | llvm-svn: 53924 | |||||
* | open plugins with RTLD_GLOBAL, pointed out by Bram Adams. | Chris Lattner | 2008-07-10 | 1 | -1/+1 | |
| | | | | llvm-svn: 53385 | |||||
* | Add a little wrapper header that is put around bc files when emitting | Chris Lattner | 2008-07-09 | 1 | -1/+6 | |
| | | | | | | | | | | | | | | | | 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 | |||||
* | Fix GetMainExecutable. Patch by Sam Bishop. | Seo Sanghyeon | 2008-06-27 | 1 | -4/+2 | |
| | | | | llvm-svn: 52847 | |||||
* | Make LLVM compile on DragonFly BSD (PR2499). | Matthijs Kooijman | 2008-06-26 | 1 | -1/+1 | |
| | | | | | | Patch by Hasso Tepper! llvm-svn: 52781 | |||||
* | Cleanup for unitialized types. Patch by Jean-Daniel Dupas! | Bill Wendling | 2008-06-26 | 1 | -4/+4 | |
| | | | | llvm-svn: 52775 | |||||
* | "An improved Mach-O file type detection for sys::IdentifyFileType() | Chris Lattner | 2008-06-26 | 1 | -18/+32 | |
| | | | | | | | | | | 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 | |||||
* | fix compilation errors in my previous patch | Chris Lattner | 2008-06-25 | 1 | -4/+5 | |
| | | | | llvm-svn: 52733 | |||||
* | Add a new InvalidateInstructionCache method to sys::Memory. | Chris Lattner | 2008-06-25 | 1 | -6/+31 | |
| | | | | llvm-svn: 52731 | |||||
* | Use static_cast instead of reinterpret_cast for casting void*. | Dan Gohman | 2008-06-21 | 1 | -4/+4 | |
| | | | | llvm-svn: 52592 | |||||
* | Minor comment fix. | Argyrios Kyrtzidis | 2008-06-16 | 1 | -1/+1 | |
| | | | | llvm-svn: 52312 | |||||
* | Add a missing semicolon. | Wojciech Matyjewicz | 2008-06-15 | 1 | -1/+1 | |
| | | | | llvm-svn: 52290 | |||||
* | Fix the sys::Path::getSuffix() implementation. | Argyrios Kyrtzidis | 2008-06-15 | 3 | -5/+32 | |
| | | | | llvm-svn: 52288 | |||||
* | Fix the environment block that is passed to the CreateProcess function. | Argyrios Kyrtzidis | 2008-06-15 | 1 | -1/+28 | |
| | | | | | | This bug made llvm-ld unable to function with "-native" option, since the process that was used to call 'gcc' was crashing. llvm-svn: 52284 | |||||
* | Fix redirection of stderr in sys::Program::ExecuteAndWait. There was logic | Matthijs Kooijman | 2008-06-12 | 2 | -9/+19 | |
| | | | | | | | | | | | | | 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 | |||||
* | Make I/O redirection handling in sys::Program a bit more consistent. No | Matthijs Kooijman | 2008-06-12 | 2 | -24/+18 | |
| | | | | | | | | | | | | | 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 | |||||
* | Provide hooks for libgcc symbols' address resolution inside lli on mingw32. | Anton Korobeynikov | 2008-06-06 | 1 | -0/+30 | |
| | | | | | | Patch by Julien Lerouge! llvm-svn: 52037 | |||||
* | Unbreak build. | Bill Wendling | 2008-05-29 | 1 | -3/+3 | |
| | | | | llvm-svn: 51709 | |||||
* | Remove more iostream header includes. Needed to implement a "FlushStream" | Bill Wendling | 2008-05-29 | 1 | -3/+3 | |
| | | | | | | function to flush a specified std::ostream. llvm-svn: 51705 | |||||
* | Follow-up to the reverting of r51218. This puts the checks out-of-line. Because | Bill Wendling | 2008-05-21 | 1 | -0/+12 | |
| | | | | | | | | they aren't in the header file, systems with a <string> header file that isn't 64-bit clean shouldn't warn if #including Path.h and specifying -Wshorten-64-to-32. llvm-svn: 51393 | |||||
* | Make PreVerifyID, IntSigsEnd, and KillSigsEnd const. | Dan Gohman | 2008-05-14 | 1 | -2/+4 | |
| | | | | llvm-svn: 51088 | |||||
* | Clean up the use of static and anonymous namespaces. This turned up | Dan Gohman | 2008-05-13 | 1 | -1/+1 | |
| | | | | | | | several things that were neither in an anonymous namespace nor static but not intended to be global. llvm-svn: 51017 | |||||
* | Make constructors target-specific. This fixes problems where the path would | Nick Lewycky | 2008-05-11 | 2 | -1/+17 | |
| | | | | | | include backslashes on Windows. This should fix llvm-ld problems on win32. llvm-svn: 50960 | |||||
* | Fix renamePathOnDisk on Win32, patch from David Leon. This fixes problems with | Nick Lewycky | 2008-05-06 | 1 | -1/+1 | |
| | | | | | | llvm-ar being unable to rename files. llvm-svn: 50702 | |||||
* | Remove uses of llvm/System/IncludeFile.h that are no longer needed. | Dan Gohman | 2008-05-06 | 7 | -14/+0 | |
| | | | | llvm-svn: 50695 | |||||
* | Fix more -Wshorten-64-to-32 warnings. | Evan Cheng | 2008-05-05 | 5 | -8/+10 | |
| | | | | llvm-svn: 50659 | |||||
* | Restore code to disable crash catcher on older OS X systems | Nate Begeman | 2008-04-12 | 1 | -1/+25 | |
| | | | | llvm-svn: 49568 | |||||
* | Make several symbols static. | Dan Gohman | 2008-04-10 | 1 | -12/+12 | |
| | | | | llvm-svn: 49496 | |||||
* | Make getDirnameSep a static method (not part of Path's interface). | Ted Kremenek | 2008-04-07 | 3 | -3/+7 | |
| | | | | llvm-svn: 49354 | |||||
* | Added method Path::getDirname(). | Ted Kremenek | 2008-04-07 | 3 | -2/+45 | |
| | | | | llvm-svn: 49352 |