Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Revert r101701, Darwin doesn't have 'environ'. Go figure. | Nick Lewycky | 2010-04-18 | 1 | -3/+0 | |
| | | | | llvm-svn: 101702 | |||||
* | Fix linux build. posix_spawn doesn't inherit the environment by default. | Nick Lewycky | 2010-04-18 | 1 | -1/+4 | |
| | | | | llvm-svn: 101701 | |||||
* | make Program::Execute use posix_spawn on systems that support it, | Chris Lattner | 2010-04-18 | 1 | -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 Lattner | 2010-04-18 | 1 | -5/+1 | |
| | | | | llvm-svn: 101691 | |||||
* | Fix a bunch of namespace polution. | Dan Gohman | 2010-04-15 | 1 | -2/+8 | |
| | | | | llvm-svn: 101376 | |||||
* | improve haiku portability, patch by Paul Davey. | Chris Lattner | 2010-04-10 | 1 | -0/+2 | |
| | | | | llvm-svn: 100933 | |||||
* | add minix support, patch by Kees van Reeuwijk! PR6797 | Chris Lattner | 2010-04-09 | 1 | -0/+14 | |
| | | | | llvm-svn: 100895 | |||||
* | AddSignalHandler was not releasing the critical section on win32. | Torok Edwin | 2010-03-31 | 1 | -0/+1 | |
| | | | | | | Patch from Gianluigi Tiesi! llvm-svn: 100003 | |||||
* | Fix a grammaro. | Dan Gohman | 2010-03-30 | 1 | -2/+2 | |
| | | | | llvm-svn: 99917 | |||||
* | Properly quote the quotes :) during cmdline construction on Windows. | Anton Korobeynikov | 2010-03-28 | 1 | -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 declared | Chris Lattner | 2010-03-26 | 1 | -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(). Because | Jeffrey Yasskin | 2010-03-17 | 1 | -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 knows | Jeffrey Yasskin | 2010-03-15 | 3 | -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 by | Chris Lattner | 2010-03-14 | 1 | -1/+2 | |
| | | | | | | cppcheck, PR6617. Patch by Ettl Martin! llvm-svn: 98525 | |||||
* | Remove superfluous NULL assignment | Kovarththanan Rajaratnam | 2010-03-12 | 1 | -11/+11 | |
| | | | | llvm-svn: 98350 | |||||
* | Update CMake build. | Ted Kremenek | 2010-03-11 | 1 | -0/+1 | |
| | | | | llvm-svn: 98250 | |||||
* | Make clang bootstrap happier on OSX 10.5 by reducing the number of headers | Jeffrey Yasskin | 2010-03-11 | 2 | -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 PR6280 | Chris Lattner | 2010-02-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 96172 | |||||
* | improve support for minix, PR6280, patch by | Chris Lattner | 2010-02-12 | 2 | -2/+11 | |
| | | | | | | Kees van Reeuwijk! llvm-svn: 95946 | |||||
* | Add llvm::Program::ChangeStderrToBinary(). | Douglas Gregor | 2010-01-28 | 2 | -0/+10 | |
| | | | | llvm-svn: 94743 | |||||
* | mark some libraries that currently require RTTI. | Chris Lattner | 2010-01-24 | 1 | -1/+1 | |
| | | | | llvm-svn: 94377 | |||||
* | Fix TimeValue::now() on Unix. | Torok Edwin | 2010-01-22 | 1 | -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 Ranby | 2010-01-19 | 1 | -0/+4 | |
| | | | | llvm-svn: 93913 | |||||
* | Remove spurious semicolon. | Anton Korobeynikov | 2010-01-14 | 1 | -21/+21 | |
| | | | | | | Patch by Diego Iastrubni! llvm-svn: 93450 | |||||
* | Alternative fix to make sure that the extern declarations used by | Douglas Gregor | 2009-12-23 | 1 | -23/+29 | |
| | | | | | | | DynamicLibrary::SearchForAddressOfSymbol refer to declarations in the global namespace. llvm-svn: 92023 | |||||
* | Revert 92020 until I figure out a more portable fix | Douglas Gregor | 2009-12-23 | 2 | -47/+28 | |
| | | | | llvm-svn: 92021 | |||||
* | Move the extern symbol declarations outside of | Douglas Gregor | 2009-12-23 | 2 | -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 .rodata | Nuno Lopes | 2009-12-23 | 1 | -1/+1 | |
| | | | | llvm-svn: 92011 | |||||
* | Fix Win32 Path.inc for API update. | Daniel Dunbar | 2009-12-18 | 1 | -1/+1 | |
| | | | | llvm-svn: 91706 | |||||
* | Make Path use StringRef instead of std::string where possible. | Jeffrey Yasskin | 2009-12-17 | 3 | -43/+44 | |
| | | | | llvm-svn: 91620 | |||||
* | remove use of SmallVector from Path::makeUnique. Path::makeUnique | Chris Lattner | 2009-12-16 | 1 | -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 where | Chris Lattner | 2009-12-16 | 1 | -6/+4 | |
| | | | | | | a fixed size buffer is perfectly fine. llvm-svn: 91527 | |||||
* | Add "generic" fallback. | Torok Edwin | 2009-12-14 | 1 | -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 for | Torok Edwin | 2009-12-13 | 1 | -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 Edwin | 2009-12-12 | 1 | -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 Dunbar | 2009-12-09 | 1 | -1/+1 | |
| | | | | llvm-svn: 90937 | |||||
* | Fixes the Atomic implementation if compiled by MSVC compiler. | Oscar Fuentes | 2009-12-07 | 1 | -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 Kramer | 2009-11-29 | 1 | -2/+0 | |
| | | | | llvm-svn: 90083 | |||||
* | This patch ensures that Path::GetMainExecutable is able to handle the | Kovarththanan Rajaratnam | 2009-11-29 | 1 | -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'Callaghan | 2009-11-25 | 2 | -7/+9 | |
| | | | | | | regards to comments from 89765 post review. llvm-svn: 89848 | |||||
* | Remove bogus error handling code. | Daniel Dunbar | 2009-11-24 | 1 | -6/+2 | |
| | | | | llvm-svn: 89786 | |||||
* | Provide Path::isSpecialFile interface for PR5568. | Edward O'Callaghan | 2009-11-24 | 2 | -2/+25 | |
| | | | | llvm-svn: 89765 | |||||
* | Use CMAKE_DL_LIBS instead of raw library name. Fixes bug 5536. | Oscar Fuentes | 2009-11-19 | 1 | -1/+1 | |
| | | | | | | Patch by Tobias Grosser! llvm-svn: 89406 | |||||
* | Unbreak x64 MSVC build. Patch by Nicolas Capens! | Benjamin Kramer | 2009-11-19 | 1 | -0/+3 | |
| | | | | llvm-svn: 89341 | |||||
* | Revert CPU detection code to return "generic" instead of an empty string in case | Benjamin Kramer | 2009-11-17 | 1 | -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 Dunbar | 2009-11-14 | 1 | -4/+0 | |
| | | | | llvm-svn: 88818 | |||||
* | Fill out X86 table, although we are missing lots of names for things. We now | Daniel Dunbar | 2009-11-14 | 1 | -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 Dunbar | 2009-11-14 | 1 | -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 timeouts | Duncan Sands | 2009-11-08 | 1 | -3/+9 | |
| | | | | | | not to work any more on linux. llvm-svn: 86481 | |||||
* | Path::createDirectoryOnDisk should ignore existing directories on win32 too. | Benjamin Kramer | 2009-11-05 | 1 | -2/+4 | |
| | | | | llvm-svn: 86132 |