summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
Commit message (Collapse)AuthorAgeFilesLines
* Use new config.h macroChris Lattner2006-09-141-2/+2
| | | | llvm-svn: 30321
* On Mac OS/X, make Process::PreventCoreFiles disable crash reporter forChris Lattner2006-09-141-7/+29
| | | | | | | the process in addition to disabling core file emission. This speeds up bugpoint on default-configured macs by several orders of magnitude. llvm-svn: 30317
* - Fixed broken Win32 buildAnton Korobeynikov2006-09-014-20/+24
| | | | | | - Removed warning about clobbered parameter in Bytecode/Reader llvm-svn: 30026
* Guess what happens when asserts are disabled. :(Chris Lattner2006-08-301-1/+2
| | | | | | Also, the assert could never fire due to || instead of &&. llvm-svn: 29977
* simplify AnalysisGroup registration, eliminating one typeid call.Chris Lattner2006-08-281-1/+1
| | | | llvm-svn: 29932
* For PR797:Reid Spencer2006-08-259-76/+67
| | | | | | | Make the Win32 code exception free (untested/uncompiled) which forced some interface changes which had ripple effect. This should be the last of 797. llvm-svn: 29884
* For PR797:Reid Spencer2006-08-252-8/+7
| | | | | | | | | | | | | | | Final commit for this bug. This removes the last EH holdouts in LLVM and turns off exception support by using the -fno-exceptions option. This leads to the following reduction in library and executable sizes: DEBUG BUILD RELEASE BUILD before after delta before after delta lib 162,328K 157,616K 4,712 17,864K 16,416K 1,448K bin 571,444K 557,156K 14,288 63,296K 56,996K 6,300K Debug Improvement: 19,000K (2.59%) Release Improvement: 7,748K (9.55%) llvm-svn: 29882
* For PR797:Reid Spencer2006-08-241-42/+37
| | | | | | | Adjust implementation to match the new interface after exception handling was removed in the Unix verison. NOTE: this hasn't been compiled yet! llvm-svn: 29858
* Turn off exception handling for this library. It no longer throws norReid Spencer2006-08-231-1/+0
| | | | | | handles exceptions. llvm-svn: 29847
* For PR797:Reid Spencer2006-08-233-109/+63
| | | | | | | Final removal of exceptions from lib/System and adjustment of users to accommodate. llvm-svn: 29846
* For PR797:Reid Spencer2006-08-234-41/+30
| | | | | | | Eliminate exception throwing from Path::renamePathOnDisk and adjust its users correspondingly. llvm-svn: 29843
* For PR797:Reid Spencer2006-08-232-11/+18
| | | | | | Remove exception throwing from Path::getDirectoryContents and its users. llvm-svn: 29841
* For PR797:Reid Spencer2006-08-231-15/+22
| | | | | | | Remove exceptions from the Path::create*OnDisk methods. Update their users to handle error messages via arguments and result codes. llvm-svn: 29840
* For PR797:Reid Spencer2006-08-221-5/+10
| | | | | | Adjust code to compensate for Path class interface change. llvm-svn: 29837
* For PR797:Reid Spencer2006-08-221-9/+18
| | | | | | Change the Path::make*OnDisk methods exception free and adjust their usage. llvm-svn: 29836
* Update for changes in Path class interface for exception removal.Reid Spencer2006-08-221-16/+6
| | | | llvm-svn: 29834
* Make the sys::Path::GetTemporaryDirectory method not throw exceptions andReid Spencer2006-08-221-23/+30
| | | | | | adjust users of it to compensate. llvm-svn: 29831
* Don't throw needlessly. Failure of gettimeofday is *very* unlinkely soReid Spencer2006-08-221-2/+7
| | | | | | just return MinTime if that should ever happen. llvm-svn: 29826
* For PR797:Reid Spencer2006-08-221-10/+15
| | | | | | Make MappedFile not throw any exceptions. llvm-svn: 29816
* For PR797:Reid Spencer2006-08-221-8/+13
| | | | | | | Fix a bug in my last patch that botched file redirection by using explicit scoping of if statements. llvm-svn: 29815
* Make an error message a little more intelligible.Reid Spencer2006-08-221-1/+1
| | | | llvm-svn: 29808
* For PR797:Reid Spencer2006-08-214-54/+126
| | | | | | | Remove all exception code from Program.inc and implement its new interface with an ErrMsg string argument. llvm-svn: 29790
* For PR797:Reid Spencer2006-08-211-1/+1
| | | | | | | | Make sys::Program::ExecuteAndWait not throw exceptions and update any affected code. It now return -9999 to signal that the program couldn't be executed. Only one case (in bugpoint) actually examines the result code. llvm-svn: 29785
* Remove extraneous #include.Reid Spencer2006-08-071-1/+0
| | | | llvm-svn: 29541
* Make the removal of files use Path::eraseFromDisk just like it does forReid Spencer2006-08-071-4/+5
| | | | | | | | | | | the removal of directories. Using std::remove is indiscriminate and can lead to the removal of things like /dev/null if run as root. The Path::eraseFromDisk method ensures that we only ever remove regular files or directories, but never character or block special nodes. This should clear up the problem with usage like: llvm-as -o /dev/null which is used in the llvm-test makefiles. llvm-svn: 29540
* Add a note about how the "isFile" check in Path::eraseFromDisk preventsReid Spencer2006-08-071-0/+5
| | | | | | the erasure of non-file paths like /dev/null. llvm-svn: 29539
* Update the auto* tools: autoconf 2.60, libtool 1.5.22, automake 1.9.6.Reid Spencer2006-08-042-163/+188
| | | | | | | | | Update ltld.[ch] to version 1.5.22. Correct the notes about updating these tools (autoconf/README.TXT) Add configure options for getting the correct option for including a whole archive when linking. llvm-svn: 29529
* Remove some now-dead methods. Use getFileStatus instead.Chris Lattner2006-08-012-67/+0
| | | | llvm-svn: 29447
* Use getFileStatus instead of Path::isDirectory().Chris Lattner2006-08-012-13/+14
| | | | llvm-svn: 29443
* elimiante some syscallsChris Lattner2006-08-012-23/+20
| | | | llvm-svn: 29442
* Minor fix due to recent API changesAnton Korobeynikov2006-08-011-1/+1
| | | | llvm-svn: 29428
* 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
OpenPOWER on IntegriCloud