summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
Commit message (Collapse)AuthorAgeFilesLines
...
* Modify setStatusInfoOnDisk to not throw an exception.Chris Lattner2006-07-282-12/+12
| | | | llvm-svn: 29402
* Update win32 for Path::getStatusInfoChris Lattner2006-07-281-4/+6
| | | | llvm-svn: 29401
* Modify Path::eraseFromDisk to not throw an exception.Chris Lattner2006-07-282-35/+39
| | | | llvm-svn: 29400
* Change Path::getStatusInfo to return a boolean and error string on an errorChris Lattner2006-07-281-15/+15
| | | | | | | | instead of throwing an exception. This reduces the amount of code that is exposed to exceptions (e.g. FileUtilities), though it is clearly only one step along the way. llvm-svn: 29395
* Fix the build on win32Chris Lattner2006-07-261-1/+2
| | | | llvm-svn: 29302
* For PR780:Reid Spencer2006-07-268-0/+10
| | | | | | | | | Put the rest of lib/System into LinkAllVMCore.h. This makes all of lib/System available to programs that #include LinkALlVMCore.h so that loadable modules linked into those programs can depend on all of lib/System being available. llvm-svn: 29288
* For PR780:Reid Spencer2006-07-263-3/+8
| | | | | | | | | | | | 1. Move IncludeFile.h to System library 2. Move IncludeFile.cpp to System library 3. #1 and #2 required to prevent cyclic library dependencies for libSystem 4. Convert all existing uses of Support/IncludeFile.h to System/IncludeFile.h 5. Add IncludeFile support to various lib/System classes. 6. Add new lib/System classes to LinkAllVMCore.h All this in an attempt to pull in lib/System to what's required for VMCore llvm-svn: 29287
* simple optimization: don't bother calling "exists" (which calls the syscallChris Lattner2006-07-181-3/+0
| | | | | | | "access"). Instead, just let the open call fail if the file doesn't exist. This reduces the # syscalls executed. llvm-svn: 29173
* Remove a dead conditional: info_ can only be allocated if FD is good. ImproveChris Lattner2006-07-181-5/+4
| | | | | | spacing llvm-svn: 29172
* The only entry in the stat buf this code cares about is the size. Keep justChris Lattner2006-07-181-14/+14
| | | | | | the size, not the whole stat buffer. llvm-svn: 29171
* Reduce code in the error path by only allocating info_ if everything looksChris Lattner2006-07-181-10/+8
| | | | | | good. llvm-svn: 29170
* Unindent some codeChris Lattner2006-07-181-25/+24
| | | | llvm-svn: 29169
* Turn an if into an else if.Chris Lattner2006-07-121-2/+2
| | | | llvm-svn: 29129
* no need to do a stat then an lstat. lstat will tell us if normal files ↵Chris Lattner2006-07-071-7/+4
| | | | | | don't exist. llvm-svn: 29068
* Move << method out of line.Chris Lattner2006-07-071-8/+8
| | | | llvm-svn: 29062
* Change AllocateRWX/DeallocateRWX to not throw an exception.Chris Lattner2006-07-073-37/+69
| | | | llvm-svn: 29058
* Fix this implChris Lattner2006-07-071-1/+1
| | | | llvm-svn: 29055
* Add a helper functionChris Lattner2006-07-071-0/+10
| | | | llvm-svn: 29049
* Change LoadLibraryPermanently to not throw an exception.Chris Lattner2006-07-072-9/+17
| | | | llvm-svn: 29048
* This uses EH extensivelyChris Lattner2006-07-071-0/+1
| | | | llvm-svn: 29036
* Only print the stack trace if it was requested. Previously, any call intoReid Spencer2006-06-161-1/+5
| | | | | | | | the Signals module that registered the handlers would cause the stack trace to be generated. Now, you must explicitly call PrintStackTraceOnErrorSignal in order for that to happen. llvm-svn: 28810
* Don't pull in environ, not always safe. Global variables are bad anyway.Evan Cheng2006-06-091-8/+4
| | | | | | | Use execve when explicit environment variables ptr is available. Otherwise just use execv. llvm-svn: 28740
* Squelch a warning about signed/unsigned.Reid Spencer2006-06-081-1/+1
| | | | llvm-svn: 28729
* For PR804:Reid Spencer2006-06-081-1/+1
| | | | | | | | Change the file size field of StatusInfo to be uint64_t instead of size_t so that we know it is always 64 bits. This prevents some overflow on systems where size_t is 32 bits when it ought to be 64. llvm-svn: 28726
* For PR787:Reid Spencer2006-06-072-0/+22
| | | | | | | | | | | | Provide new llvm::sys::Program facilities for converting the stdout and stdin to binary mode. There is no standard way to do this and the available mechanisms are platform specific. Adjust the bytecode reader and writer to use these methods when their input is stdin or output is stdout. THis avoids the problem with \n writing CRLF to a bytecode file on windows. Patch Contributed by Michael Smith. llvm-svn: 28722
* For PR780:Reid Spencer2006-06-071-0/+20
| | | | | | | | | Break the "IncludeFile" mechanism into its own header file and adjust other files accordingly. Use this facility for the IntrinsicInst problem which was the subject of PR800. More to follow on this. llvm-svn: 28709
* For PR798:Reid Spencer2006-06-051-7/+8
| | | | | | Add support for Graphviz. Patch contributed by Anton Korobeynikov. llvm-svn: 28684
* Provide configuration support and usage for MINGW32 platformReid Spencer2006-06-013-8/+26
| | | | llvm-svn: 28639
* For PR786:Reid Spencer2006-06-011-0/+3
| | | | | | | | | Turn -pedantic and -Wno-long-long compile flags on by default. In a few places, avoid the warnings by removing these options in the local makefile. One notable exception: lib/Target/CBackend/Writer.cpp. These warnings are left on as a reminder to developers to clean them up. llvm-svn: 28614
* Bug noticed, by inspection. Filename can be null.Chris Lattner2006-05-141-1/+2
| | | | llvm-svn: 28292
* This function is not documented as throwing an exception and callers don'tChris Lattner2006-05-141-3/+1
| | | | | | handle it. Just silently fail. llvm-svn: 28291
* Fix accidentally committed patch.Chris Lattner2006-05-121-1/+1
| | | | llvm-svn: 28260
* Fix iterator invalidation bug, identified by Coverity.Chris Lattner2006-05-122-1/+2
| | | | llvm-svn: 28257
* Unlike Unix, Windows won't let a file be implicitly replaced via renaming ↵Jeff Cohen2006-05-071-1/+1
| | | | | | without explicit permission. llvm-svn: 28157
* Mingw32 patches supplied by Anton Korobeynikov.Jeff Cohen2006-04-291-1/+1
| | | | llvm-svn: 28023
* Add checks for __OpenBSD__.Jeff Cohen2006-04-171-1/+1
| | | | llvm-svn: 27761
* Add the README files to the distribution.Reid Spencer2006-04-131-1/+1
| | | | llvm-svn: 27651
* Convert llvm.cs.uiuc.edu -> llvm.orgReid Spencer2006-03-141-1/+1
| | | | llvm-svn: 26748
* Add AddSymbol() method to DynamicLibrary to work around Windows limitationJeff Cohen2006-01-302-0/+21
| | | | | | | of being unable to search for symbols in an EXE. It will also allow other existing hacks to be improved. llvm-svn: 25805
* Fix indentation.Jeff Cohen2006-01-291-4/+4
| | | | llvm-svn: 25795
* For PR351:Reid Spencer2005-12-221-7/+12
| | | | | | | | * Allow the ExecuteAndWait to return negative values if a signal is detected as the reason for the child termination. This is needed to support bugpoint detecting bad things in its child processes. llvm-svn: 24960
* Implement a generic polled Alarm function. This merely removes the systemReid Spencer2005-12-223-0/+138
| | | | | | | dependent portion of the lib/Support/SlowOperationTimer code into the lib/System implementation where it can be ported to different platforms. llvm-svn: 24937
* instead of using mstats, use malloc_zone_statistics which returns numbersChris Lattner2005-11-141-4/+8
| | | | | | that actually make sense. llvm-svn: 24352
* Teach -track-memory to work on darwin. Looking at sbrk doesn't work becauseChris Lattner2005-11-141-10/+12
| | | | | | the default allocator uses mmap. llvm-svn: 24349
* DONT_BUILD_RELINKED is gone and implied by BUILD_ARCHIVE nowChris Lattner2005-10-241-1/+1
| | | | llvm-svn: 23940
* Only build .a file versions of these libraries, instead of .a and .o versions.Chris Lattner2005-10-241-0/+1
| | | | | | This should speed up build times. llvm-svn: 23937
* For PR616:Reid Spencer2005-08-241-3/+17
| | | | | | | | | | These patches make threading optional in LLVM. The configuration scripts are now modified to accept a --disable-threads switch. If this is used, the Mutex class will be implemented with all functions as no-op. Furthermore, linking against libpthread will not be done. Finally, the ParallelJIT example needs libpthread so its makefile was changed to always add -lpthread to the link line. llvm-svn: 23003
* Fix grammar: it's == "it is".Misha Brukman2005-08-021-1/+1
| | | | llvm-svn: 22587
* It's dangerous coding on Mondays.Jeff Cohen2005-08-021-8/+5
| | | | llvm-svn: 22585
* Implement SetInterruptFunction for Windows.Jeff Cohen2005-08-021-1/+25
| | | | llvm-svn: 22582
OpenPOWER on IntegriCloud