summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
Commit message (Collapse)AuthorAgeFilesLines
* Fix GetMainExecutable. Patch by Sam Bishop.Seo Sanghyeon2008-06-271-4/+2
| | | | llvm-svn: 52847
* Make LLVM compile on DragonFly BSD (PR2499).Matthijs Kooijman2008-06-261-1/+1
| | | | | | Patch by Hasso Tepper! llvm-svn: 52781
* Cleanup for unitialized types. Patch by Jean-Daniel Dupas!Bill Wendling2008-06-261-4/+4
| | | | llvm-svn: 52775
* "An improved Mach-O file type detection for sys::IdentifyFileType()Chris Lattner2008-06-261-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 patchChris Lattner2008-06-251-4/+5
| | | | llvm-svn: 52733
* Add a new InvalidateInstructionCache method to sys::Memory.Chris Lattner2008-06-251-6/+31
| | | | llvm-svn: 52731
* Use static_cast instead of reinterpret_cast for casting void*.Dan Gohman2008-06-211-4/+4
| | | | llvm-svn: 52592
* Minor comment fix.Argyrios Kyrtzidis2008-06-161-1/+1
| | | | llvm-svn: 52312
* Add a missing semicolon.Wojciech Matyjewicz2008-06-151-1/+1
| | | | llvm-svn: 52290
* Fix the sys::Path::getSuffix() implementation.Argyrios Kyrtzidis2008-06-153-5/+32
| | | | llvm-svn: 52288
* Fix the environment block that is passed to the CreateProcess function.Argyrios Kyrtzidis2008-06-151-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 logicMatthijs Kooijman2008-06-122-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. NoMatthijs Kooijman2008-06-122-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 Korobeynikov2008-06-061-0/+30
| | | | | | Patch by Julien Lerouge! llvm-svn: 52037
* Unbreak build.Bill Wendling2008-05-291-3/+3
| | | | llvm-svn: 51709
* Remove more iostream header includes. Needed to implement a "FlushStream"Bill Wendling2008-05-291-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. BecauseBill Wendling2008-05-211-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 Gohman2008-05-141-2/+4
| | | | llvm-svn: 51088
* Clean up the use of static and anonymous namespaces. This turned upDan Gohman2008-05-131-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 wouldNick Lewycky2008-05-112-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 withNick Lewycky2008-05-061-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 Gohman2008-05-067-14/+0
| | | | llvm-svn: 50695
* Fix more -Wshorten-64-to-32 warnings.Evan Cheng2008-05-055-8/+10
| | | | llvm-svn: 50659
* Restore code to disable crash catcher on older OS X systemsNate Begeman2008-04-121-1/+25
| | | | llvm-svn: 49568
* Make several symbols static.Dan Gohman2008-04-101-12/+12
| | | | llvm-svn: 49496
* Make getDirnameSep a static method (not part of Path's interface).Ted Kremenek2008-04-073-3/+7
| | | | llvm-svn: 49354
* Added method Path::getDirname().Ted Kremenek2008-04-073-2/+45
| | | | llvm-svn: 49352
* Re-implemented Path::createDirectoryOnDisk (for Unix).Ted Kremenek2008-04-031-32/+39
| | | | | | | | | | | | | | | | | | | | | | | | 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
* add some #includes.Chris Lattner2008-04-011-2/+8
| | | | llvm-svn: 49036
* MappedFile is dead, remove it.Chris Lattner2008-04-013-235/+0
| | | | llvm-svn: 49035
* Implement Path::MapInFilePages/UnMapFilePages on unix, which Chris Lattner2008-04-012-7/+11
| | | | | | provides fast MappedFile::getFile for large files. llvm-svn: 49034
* Stub out some sys::Path::MapInFilePages/UnMapFilePages methods.Chris Lattner2008-04-012-0/+20
| | | | llvm-svn: 49030
* Make MappedFile::map return a const correct pointer, don't leak address ↵Chris Lattner2008-04-012-2/+3
| | | | | | space on Unix platforms. llvm-svn: 49026
* Remove MappedFile support for mapping files for write and execChris Lattner2008-04-012-106/+12
| | | | | | | and shared. This complicates the design, is not used, and probably doesn't even work. llvm-svn: 49022
* cleanup the MappedFile API and comments. This removes and updatesChris Lattner2008-04-012-118/+119
| | | | | | | | tons of out of date comments (really nothing throws here!) and fixes some other fairly glaring issues: "size" used to return the size of the file *and* change it, depending on how you called it. llvm-svn: 49009
* remove DEFINING_FILE_FOR for MappedFile.hChris Lattner2008-04-011-1/+0
| | | | llvm-svn: 49008
* Actually disable crash reporting on Mac OS X, returning bugpoint to speedyNate Begeman2008-03-311-23/+6
| | | | | | crash miscompilations. llvm-svn: 49000
* Revert r48676. I had plans for using it, but now it's just dead code.Owen Anderson2008-03-242-70/+0
| | | | llvm-svn: 48743
* Add a comment, and fix a bug where AllocateRW recurred to AllocateRWX ↵Owen Anderson2008-03-221-1/+1
| | | | | | instead of itself. llvm-svn: 48677
* Add an AllocateRW to match AllocateRWX.Owen Anderson2008-03-222-0/+70
| | | | llvm-svn: 48676
* Avoid calling array_endof in a static initializer, as it incursDan Gohman2008-03-211-2/+2
| | | | | | dynamic initialization. llvm-svn: 48666
* Specialize FORCE_DEFINING_FILE_TO_BE_LINKED using a GCC trickDan Gohman2008-03-211-1/+1
| | | | | | | | to avoid using constructor calls for static objects. This reduces the number of objects requiring static constructors in a typical LLVM build by around 20%. llvm-svn: 48665
* this was removed from the Unix side.Chris Lattner2008-03-141-5/+0
| | | | llvm-svn: 48370
* Remove unused GetAddressOfSymbol()Devang Patel2008-03-131-6/+1
| | | | | | Thanks Daniel Dunbar! llvm-svn: 48340
* Fix Path::GetMainExecutable on cygwin, patch by Sam Bishop.Chris Lattner2008-03-131-1/+10
| | | | llvm-svn: 48328
* remove extraneous namespace qualifier, PR2142Chris Lattner2008-03-131-2/+1
| | | | llvm-svn: 48327
* This is a simple fix for getting error messages from dlerror inChris Lattner2008-03-121-1/+2
| | | | | | | | | LoadLibraryPermanently. The current code modifies the value of a pointer that is passed by value, so the caller never gets the message. Patch by Julien Lerouge! llvm-svn: 48270
* Stub out a Path::GetMainExecutable call to find the path to theChris Lattner2008-03-032-0/+24
| | | | | | main executable of a program. This needs to be implemented on windows. llvm-svn: 47835
* Add path separator support, patch by Sam Bishop. Chris Lattner2008-02-273-38/+23
| | | | llvm-svn: 47662
* Provide __main hooks for cygwin & mingw32Anton Korobeynikov2008-02-222-17/+28
| | | | llvm-svn: 47479
OpenPOWER on IntegriCloud