summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Hide MSVC specific CRT interaction behind _MSC_VER.Daniel Dunbar2009-09-221-1/+7
| | | | llvm-svn: 82551
* Remove the GetProcessId() call from Win32/Program.inc, take 2.Mikhail Glushenkov2009-09-221-9/+23
| | | | | | | GetProcessId() was introduced only in Windows XP, and we want to support earlier versions. llvm-svn: 82548
* Add a magic LLVM_DISABLE_CRT_DEBUG environment variable which we check in ↵Daniel Dunbar2009-09-221-1/+39
| | | | | | | | RegisterHandler and use to disable the Win32 crash dialogs. These are a major blocker to any kind of automated testing. Also, tweak the 'lit' test runner to set this variable unconditionally. llvm-svn: 82537
* Revert "Get rid of GetProcessId in Win32/Program.inc.", this breaksDaniel Dunbar2009-09-222-22/+43
| | | | | | ExecuteAndWait. llvm-svn: 82522
* Get rid of GetProcessId in Win32/Program.inc.Mikhail Glushenkov2009-09-152-43/+22
| | | | | | | GetProcessId was introduced only in XP. As a bonus, this change makes Program objects copyable, since Program is now basically a PID. llvm-svn: 81826
* Experimental fix for PR4960.Daniel Dunbar2009-09-121-5/+14
| | | | | | - Could we just always implement this as __clear_cache for __GNUC__? llvm-svn: 81655
* Fix llvm-extract's "writing bitcode to a terminal" warning, which wasn'tDan Gohman2009-09-112-16/+14
| | | | | | | | | | | | | | | working. To support this, add an is_displayed() function to raw_ostream, and generalize Process::StandardOutIsDisplayed and friends in order to support it. Also, call RemoveFileOnSignal before creating a file instead of after, so that the file isn't left behind if the program is interrupted between when the file is created and RemoveFileOnSignal is called. While here, add a -S to llvm-extract and port it to IRReader so that it supports assembly input. llvm-svn: 81568
* Add a shortcut for OS X to Path::GetMainExecutable. This gives a nice speedup onBenjamin Kramer2009-09-091-1/+15
| | | | | | clang's testsuite. llvm-svn: 81333
* Check that the 'kill' call succeeded.Mikhail Glushenkov2009-09-092-2/+13
| | | | | | Thanks to Duncan Sands for spotting this. llvm-svn: 81328
* This should unbreak the build on 64-bit Linux.Mikhail Glushenkov2009-09-081-3/+6
| | | | llvm-svn: 81252
* Const-correctness.Mikhail Glushenkov2009-09-082-2/+2
| | | | llvm-svn: 81249
* Get rid of the Pid_ member in the Program class.Mikhail Glushenkov2009-09-082-20/+29
| | | | llvm-svn: 81247
* Add a Kill() function to the Program class.Mikhail Glushenkov2009-09-082-9/+30
| | | | llvm-svn: 81246
* Using a signal handler that does nothing should beDuncan Sands2009-09-071-6/+2
| | | | | | equivalent to SIG_IGN. llvm-svn: 81144
* Remove some not-really-used variables, as warnedDuncan Sands2009-09-061-3/+0
| | | | | | about by icc (#593, partial). Patch by Erick Tryzelaar. llvm-svn: 81115
* Tweak code into an equivalent form for which iccDuncan Sands2009-09-063-17/+13
| | | | | | | doesn't warn about unreachable instructions. Patch by Erick Tryzelaar (#111). llvm-svn: 81110
OpenPOWER on IntegriCloud