summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
Commit message (Collapse)AuthorAgeFilesLines
* Rather than using an ifdef on the target to zero out fields,Duncan Sands2010-07-141-4/+1
| | | | | | just use memset to zero the entire struct. llvm-svn: 108330
* Convert some tab stops into spaces.Duncan Sands2010-07-121-1/+1
| | | | llvm-svn: 108130
* Path::isRootDirectory is unimplemented on Unix and not used,Chris Lattner2010-07-121-6/+0
| | | | | | remove it, fixing PR6909. llvm-svn: 108125
* improve Path::makeUnique when mkstemp/mktemp are not availableChris Lattner2010-07-121-7/+12
| | | | | | patch by Lasse Kärkkäinen in PR7404. llvm-svn: 108110
* add some triple for minix, patch by Kees van Reeuwijk from PR7582Chris Lattner2010-07-071-1/+1
| | | | llvm-svn: 107785
* Avoid "variable 'bits' set but not used [-Wunused-but-set-variable]"Duncan Sands2010-06-101-10/+6
| | | | | | | warnings with gcc-4.6, by not setting bits when the result is not used. llvm-svn: 105790
* Factor out the handler work from SignalHandler into a helper function,Dan Gohman2010-05-271-5/+12
| | | | | | | | | and change llvm::sys::RunInterruptHandlers to call that function directly instead of calling SignalHandler, because the rest of SignalHandler invokes side effects which aren't appropriate, including raising the signal. llvm-svn: 104896
* Don't bother clearing the Magic string when the magic numberDan Gohman2010-05-271-3/+1
| | | | | | can't be read, since it isn't cleared on other error paths. llvm-svn: 104852
* Don't bother checking canRead() before calling getMagicNumber();Dan Gohman2010-05-271-16/+13
| | | | | | getMagicNumber() does its own error checking. llvm-svn: 104851
* Add llvm::sys::RunInterruptHandlers(), which runs the registered SIGINT cleanupDaniel Dunbar2010-05-082-1/+7
| | | | | | stuff. llvm-svn: 103333
* This doesn't need SmallVector.h anymore.Dan Gohman2010-04-191-1/+0
| | | | llvm-svn: 101790
* Fix this for std::vectors which don't have .data().Dan Gohman2010-04-191-1/+1
| | | | llvm-svn: 101785
* Fix -Wcast-qual warnings.Dan Gohman2010-04-191-6/+10
| | | | llvm-svn: 101782
* Revert 91528 and use a std::vector instead, fixing an abuse of std::string.Dan Gohman2010-04-191-10/+16
| | | | llvm-svn: 101781
* avoid temporary std::string in non posix_spawn path.Chris Lattner2010-04-181-4/+4
| | | | llvm-svn: 101723
* Eliminate temporary string.Benjamin Kramer2010-04-181-4/+4
| | | | llvm-svn: 101711
* Properly inherit the environment on darwin where environ is not available ↵Benjamin Kramer2010-04-181-1/+6
| | | | | | for shared libraries. llvm-svn: 101710
* This is horrible. Split the difference, and declare 'environ' on all non-DarwinNick Lewycky2010-04-181-0/+7
| | | | | | | platforms to unbreak the darwin and linux builds. The BSD folks should feel free to change the #if, if this breaks them. llvm-svn: 101703
* Revert r101701, Darwin doesn't have 'environ'. Go figure.Nick Lewycky2010-04-181-3/+0
| | | | llvm-svn: 101702
* Fix linux build. posix_spawn doesn't inherit the environment by default.Nick Lewycky2010-04-181-1/+4
| | | | llvm-svn: 101701
* make Program::Execute use posix_spawn on systems that support it,Chris Lattner2010-04-181-9/+64
| | | | | | | | | as it is more efficient than fork/exec. Thanks to Eric for adding the autoconf check. It would be nice if a cmake guru could add a cmake check for posix_spawn as well. llvm-svn: 101693
* unnest from namespace.Chris Lattner2010-04-181-5/+1
| | | | llvm-svn: 101691
* Fix a bunch of namespace polution.Dan Gohman2010-04-151-2/+8
| | | | llvm-svn: 101376
* improve haiku portability, patch by Paul Davey.Chris Lattner2010-04-101-0/+2
| | | | llvm-svn: 100933
* add minix support, patch by Kees van Reeuwijk! PR6797Chris Lattner2010-04-091-0/+14
| | | | llvm-svn: 100895
* AddSignalHandler was not releasing the critical section on win32.Torok Edwin2010-03-311-0/+1
| | | | | | Patch from Gianluigi Tiesi! llvm-svn: 100003
* Fix a grammaro.Dan Gohman2010-03-301-2/+2
| | | | llvm-svn: 99917
* Properly quote the quotes :) during cmdline construction on Windows.Anton Korobeynikov2010-03-281-6/+28
| | | | | | | | | Otherwise, e.g. in the invocation like clang -DFOO=\"bar\" FOO macro got the bar value, not "bar". Patch by Alexander Esilevich! llvm-svn: 99763
* remove a constructor implementation that isn't declaredChris Lattner2010-03-261-6/+0
| | | | | | | | in the header. How can both clang and gcc accept this? PR6703 llvm-svn: 99658
* Fix a false-positive memory leak in code using RemoveFileOnSignal(). BecauseJeffrey Yasskin2010-03-171-17/+10
| | | | | | | | libstdc++'s std::string class points to the interior of an allocation, valgrind reports strings still alive at program termination as possible leaks. I didn't use a ManagedStatic for this because System can't depend on Support. llvm-svn: 98716
* Tell Valgrind when we modify already-executed machine code so it knowsJeffrey Yasskin2010-03-153-0/+58
| | | | | | | to re-instrument the code. We depend on the system valgrind.h to avoid adding a new license. llvm-svn: 98529
* don't forget to close a FD on an error condition, found byChris Lattner2010-03-141-1/+2
| | | | | | cppcheck, PR6617. Patch by Ettl Martin! llvm-svn: 98525
* Remove superfluous NULL assignmentKovarththanan Rajaratnam2010-03-121-11/+11
| | | | llvm-svn: 98350
* Update CMake build.Ted Kremenek2010-03-111-0/+1
| | | | llvm-svn: 98250
* Make clang bootstrap happier on OSX 10.5 by reducing the number of headersJeffrey Yasskin2010-03-112-39/+67
| | | | | | | | | included when using global symbols to ask the linker for the addresses of various functions. One of the symbols was actually getting declared by a header included in DynamicLibrary.cpp, which conflicted with the "extern void*" declaration in SearchForAddressOfSpecialSymbol(). llvm-svn: 98243
* follow-on to PR6280Chris Lattner2010-02-141-1/+1
| | | | llvm-svn: 96172
* improve support for minix, PR6280, patch byChris Lattner2010-02-122-2/+11
| | | | | | Kees van Reeuwijk! llvm-svn: 95946
* Add llvm::Program::ChangeStderrToBinary().Douglas Gregor2010-01-282-0/+10
| | | | llvm-svn: 94743
* mark some libraries that currently require RTTI.Chris Lattner2010-01-241-1/+1
| | | | llvm-svn: 94377
* Fix TimeValue::now() on Unix.Torok Edwin2010-01-221-1/+1
| | | | | | | | | TimeValue()::now().toEpochTime() is supposed to be the same as time(), but it wasn't, because toEpoch subtracted PosixZeroTime, but now() didn't add PosixZeroTime! Add a unittest to check this works. llvm-svn: 94178
* Stubs for getHostCPUFeatures API. This implements part of PR5389.Xerxes Ranby2010-01-191-0/+4
| | | | llvm-svn: 93913
* Remove spurious semicolon.Anton Korobeynikov2010-01-141-21/+21
| | | | | | Patch by Diego Iastrubni! llvm-svn: 93450
* Alternative fix to make sure that the extern declarations used byDouglas Gregor2009-12-231-23/+29
| | | | | | | DynamicLibrary::SearchForAddressOfSymbol refer to declarations in the global namespace. llvm-svn: 92023
* Revert 92020 until I figure out a more portable fixDouglas Gregor2009-12-232-47/+28
| | | | llvm-svn: 92021
* Move the extern symbol declarations outside ofDouglas Gregor2009-12-232-28/+47
| | | | | | | | | | | | | DynamicLibrary::SearchForAddressOfSymbol and force them to have "C" linkage. Interestingly, GCC treats the block-scoped "extern" declarations we previously had as if they were extern "C" declarations (or, at least, were in the global namespace), so that GCC bug papered over this LLVM bug. Clang and EDG get the linkage correct; this new variant seems to work for both GCC and Clang. llvm-svn: 92020
* move a few more symbols to .rodataNuno Lopes2009-12-231-1/+1
| | | | llvm-svn: 92011
* Fix Win32 Path.inc for API update.Daniel Dunbar2009-12-181-1/+1
| | | | llvm-svn: 91706
* Make Path use StringRef instead of std::string where possible.Jeffrey Yasskin2009-12-173-43/+44
| | | | llvm-svn: 91620
* remove use of SmallVector from Path::makeUnique. Path::makeUniqueChris Lattner2009-12-161-14/+10
| | | | | | is not used by anything performance sensitive, so just use std::string. llvm-svn: 91528
* eliminate an extraneous use of SmallVector in a case whereChris Lattner2009-12-161-6/+4
| | | | | | a fixed size buffer is perfectly fine. llvm-svn: 91527
OpenPOWER on IntegriCloud