summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Add "generic" fallback.Torok Edwin2009-12-141-0/+1
| | | | | | | gcc warned that the function may not have a return value, indeed for non-intel and non-amd X86 CPUs it is right (VIA, etc.). llvm-svn: 91276
* Using _MSC_VER there was wrong, better just use the already existing ifdefs forTorok Edwin2009-12-131-5/+4
| | | | | | | x86 CPU detection for the X86 getHostCPUName too, and create a simple getHostCPUName that returns "generic" for all else. llvm-svn: 91240
* Enable CPU detection when using MS VS 2k8 too.Torok Edwin2009-12-121-1/+1
| | | | | | | MSVS2k8 doesn't define __i386__, hence all the CPU detection code was disabled. Enable it by looking for _MSC_VER. llvm-svn: 91217
* Remove spurious extern.Daniel Dunbar2009-12-091-1/+1
| | | | llvm-svn: 90937
* Fixes the Atomic implementation if compiled by MSVC compiler.Oscar Fuentes2009-12-071-1/+1
| | | | | | | | | sys::cas_flag should be long on this platform, InterlockedAdd() is defined only for the Itanium architecture (according to MSDN). Patch by Michael Beck! llvm-svn: 90748
* Remove dead returns.Benjamin Kramer2009-11-291-2/+0
| | | | llvm-svn: 90083
* This patch ensures that Path::GetMainExecutable is able to handle theKovarththanan Rajaratnam2009-11-291-2/+6
| | | | | | | | | case where realpath() fails. When this occurs we segfault trying to create a std::string from a NULL pointer. Fixes PR5635. llvm-svn: 90082
* API change Path::isSpecialFile to Path::isRegularFile, improve semantics in ↵Edward O'Callaghan2009-11-252-7/+9
| | | | | | regards to comments from 89765 post review. llvm-svn: 89848
* Remove bogus error handling code.Daniel Dunbar2009-11-241-6/+2
| | | | llvm-svn: 89786
* Provide Path::isSpecialFile interface for PR5568.Edward O'Callaghan2009-11-242-2/+25
| | | | llvm-svn: 89765
* Use CMAKE_DL_LIBS instead of raw library name. Fixes bug 5536.Oscar Fuentes2009-11-191-1/+1
| | | | | | Patch by Tobias Grosser! llvm-svn: 89406
* Unbreak x64 MSVC build. Patch by Nicolas Capens!Benjamin Kramer2009-11-191-0/+3
| | | | llvm-svn: 89341
* Revert CPU detection code to return "generic" instead of an empty string in caseBenjamin Kramer2009-11-171-3/+3
| | | | | | | of failure. The x86 target didn't like empty cpu names and broke x86 tests on non-x86 buildbots. llvm-svn: 89111
* Remove bogus corei7 and atom entries, the family was incorrect.Daniel Dunbar2009-11-141-4/+0
| | | | llvm-svn: 88818
* Fill out X86 table, although we are missing lots of names for things. We nowDaniel Dunbar2009-11-141-49/+131
| | | | | | properly detect my Xeon box though. llvm-svn: 88814
* Add llvm::sys::getHostCPUName, for detecting the LLVM name for the host CPU.Daniel Dunbar2009-11-141-0/+196
| | | | | | | | | - This is an initial step towards -march=native support in Clang, and towards eliminating host dependencies in the targets. See PR5389. - Patch by Roman Divacky! llvm-svn: 88768
* Revert commit 81144, and add a comment. It caused bugpoint timeoutsDuncan Sands2009-11-081-3/+9
| | | | | | not to work any more on linux. llvm-svn: 86481
* Path::createDirectoryOnDisk should ignore existing directories on win32 too.Benjamin Kramer2009-11-051-2/+4
| | | | llvm-svn: 86132
* Fix malloc.h is deprecated warning on DragonFly BSD.Edward O'Callaghan2009-11-021-1/+3
| | | | llvm-svn: 85782
* Most stack straces don't need 3 digits worth of levels.Dan Gohman2009-10-301-1/+1
| | | | llvm-svn: 85575
* Move DataTypes.h to include/llvm/System, update all users. This breaks the lastChandler Carruth2009-10-262-2/+2
| | | | | | direct inclusion edge from System to Support. llvm-svn: 85086
* Remove unused includes.Chandler Carruth2009-10-252-2/+0
| | | | llvm-svn: 85074
* Use 'waitpid' instead of 'wait'. Basing Program::Wait() on 'wait()' ↵Ted Kremenek2009-10-221-1/+1
| | | | | | | | | | | prevents it being correct within a multithreaded context. This address: PR 5277 (Program::Wait is unsafe to call from multiple threads). Note: If waitpid() turns out to be non-portable, we can add more autoconf magic, or look into another solution. llvm-svn: 84903
* Haiku porting patches, Credit to Paul Davey.Edward O'Callaghan2009-10-121-1/+1
| | | | llvm-svn: 83823
* MingW build fixesBenjamin Kramer2009-10-021-0/+6
| | | | | | | | | | - MingW needs -lpsapi (in ${LIBS}) linked after -lLLVMSystem. Noticed by Ronald Pijnacker! - Some parts of the System library must be build with exceptions on windows. Based on a patch by Jay Foad! llvm-svn: 83251
* ... missed hiding a variable for MSVC only.Daniel Dunbar2009-09-221-0/+2
| | | | llvm-svn: 82552
OpenPOWER on IntegriCloud