summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
Commit message (Collapse)AuthorAgeFilesLines
* Remove contributor names as per coding statndard.Michael J. Spencer2010-11-081-3/+0
| | | | llvm-svn: 118442
* Add method for checking if a path is a symbolic link.Rafael Espindola2010-11-072-0/+14
| | | | llvm-svn: 118367
* System: Add llvm_execute_on_thread, which does what it says.Daniel Dunbar2010-11-041-0/+52
| | | | | | | - Primarily useful for running some code with a specified stack size, when pthreads are available. llvm-svn: 118222
* Delete unused variables.Dan Gohman2010-11-031-3/+0
| | | | llvm-svn: 118128
* Remove several unhelpful checks for isValid from sys::Path.Dan Gohman2010-11-031-26/+4
| | | | llvm-svn: 118127
* Don't try to enforce MAXPATHLEN in sys::Path for Unix. OS's can checkDan Gohman2010-11-021-4/+6
| | | | | | limits on their own. llvm-svn: 118113
* Simplify.Dan Gohman2010-11-021-2/+1
| | | | llvm-svn: 118110
* Fix a copy+pasto.Dan Gohman2010-11-021-1/+2
| | | | llvm-svn: 118106
* Avoid manipulating paths in fixed-sized arrays.Dan Gohman2010-11-021-10/+6
| | | | llvm-svn: 118105
* Simplify this code.Dan Gohman2010-11-021-6/+3
| | | | llvm-svn: 118102
* Use '\0' instead of 0 for nul character constants.Dan Gohman2010-11-021-3/+3
| | | | llvm-svn: 118096
* appendSuffix: don't append a dot when the suffix is empty.Mikhail Glushenkov2010-11-023-24/+15
| | | | | | | Additionally, move the implementation of appendSuffix to Path.cpp: it is platform-independent. llvm-svn: 118089
* Eliminate some temporary std::strings.Dan Gohman2010-11-021-4/+4
| | | | llvm-svn: 118086
* Micro-optimize.Dan Gohman2010-11-021-1/+1
| | | | llvm-svn: 118058
* GetDLLSuffix: Remove the leading dot from LTDL_SHLIB_EXT.Mikhail Glushenkov2010-11-021-1/+1
| | | | | | This allows using GetDLLSuffix() with appendSuffix(). llvm-svn: 118051
* Make FindProgramByName return paths with slashes unmodified on Windows.Mikhail Glushenkov2010-11-022-4/+6
| | | | | | This makes its behaviour more consistent across platforms. llvm-svn: 118048
* 80-col violations.Mikhail Glushenkov2010-11-021-3/+5
| | | | llvm-svn: 118045
* Path: Add GetEXESuffix() to complement GetDLLSuffix().Mikhail Glushenkov2010-11-022-0/+9
| | | | llvm-svn: 118042
* Check if ErrMsg is null. This fixes the "not" command.Dan Gohman2010-10-291-6/+11
| | | | llvm-svn: 117666
* Make Program::Wait differentiate execution failure due to the fileDan Gohman2010-10-293-9/+13
| | | | | | being not found from the file being not executable. llvm-svn: 117664
* Make Program::Wait provide an error message string for errorsDan Gohman2010-10-291-9/+19
| | | | | | executing the child process and abnormal child process termination. llvm-svn: 117661
* Revert r117582, which reverted r77396. Searching PATH for a stringDan Gohman2010-10-281-1/+1
| | | | | | | | | | | | which contains slashes is inconsistent with the meaning of PATH on Unix-type platforms, and pretty surprising. If the user has given a specific path to execute and we can't execute it, we should fail and say why. (Apparently the new posix_spawn code doesn't always say why, but that's a separate issue.) llvm-svn: 117596
* Revert r77396.Mikhail Glushenkov2010-10-281-1/+1
| | | | | | | | | | | | | | Original commit message: On "Unix", if Program::FindProgramByName is given a name containing slashes, just go with it, regardless of whether it looks like it will be executable. This follows the behavior of sh(1) more closely. It's better when behaviour is consistent between platforms. This change also makes FindExecutable() behave as expected on unix-likes (before this commit, it used to always succeed). llvm-svn: 117582
* Trailing whitespace.Mikhail Glushenkov2010-10-281-4/+4
| | | | llvm-svn: 117581
* Reindent.Mikhail Glushenkov2010-10-281-71/+71
| | | | llvm-svn: 117538
* 80-col violation.Mikhail Glushenkov2010-10-271-1/+2
| | | | llvm-svn: 117443
* Remove try/catch(...) from Win32/Signals.inc.Mikhail Glushenkov2010-10-272-11/+1
| | | | | | | | | | | | | | | | | | | | catch(...) is used in Win32/Signals.inc for catching Win32 structured exceptions, but according to [1], this is wrong. We can't simply change try/catch to __try/__finally, since this syntax is not supported by MinGW. We can use __try/__finally on MSVC and __try1/__except1 macros on MinGW [2], but I think that that solution obfuscates the code too much. The use of try/catch(...) in Signals.inc makes it impossible to link MinGW-compiled libSystem with llvm-gcc compiled executables. I propose that we just remove try/catch(...) from Signals.inc, since the meaning of the code won't change. [1] http://members.cox.net/doug_web/eh.htm [2] http://article.gmane.org/gmane.comp.compilers.llvm.cvs/81315 llvm-svn: 117442
* ATTRIBUTE_UNUSED has been renamed to LLVM_ATTRIBUTE_UNUSED.Duncan Sands2010-10-251-2/+2
| | | | | | | Rather than rename this instance, use the cast-to-void idiom instead. This will hopefully fix the windows buildbots. llvm-svn: 117262
* Win32/Signals.inc: DontRemoveFileOnSignal(): Please acquire the CriticalSection.NAKAMURA Takumi2010-10-221-0/+2
| | | | | | It choked BugPoint on Mingw. llvm-svn: 117083
* Trailing whitespace.Mikhail Glushenkov2010-10-211-5/+5
| | | | llvm-svn: 117058
* Use C++03...Michael J. Spencer2010-10-201-1/+6
| | | | llvm-svn: 116927
* System-Win32/Path: Fix incorrect assumption in isValid.Michael J. Spencer2010-10-201-0/+9
| | | | | | | A recent commit to clang exposed a bug in the Win32 Path code. This is a minimal fix for it. llvm-svn: 116925
* Remove remaining uses of ATTRIBUTE_UNUSED on variables, and delete threeChandler Carruth2010-10-201-2/+2
| | | | | | #includes in the process. llvm-svn: 116919
* Add ATTRIBUTE_UNUSED for -Asserts.NAKAMURA Takumi2010-10-202-4/+4
| | | | llvm-svn: 116909
* lib/System/Win32/ThreadLocal.inc: Suppress "unused" warning on -Asserts.NAKAMURA Takumi2010-10-191-0/+1
| | | | llvm-svn: 116785
* Build with RTTI and exceptions disabled. Only in GCC for now.Oscar Fuentes2010-10-171-0/+5
| | | | llvm-svn: 116682
* When building shared libraries, link to required system libraries.Oscar Fuentes2010-10-141-4/+0
| | | | | | PR 8375 llvm-svn: 116479
* Change explicit search Apple specific code to only reference __eprintf on x86.Daniel Dunbar2010-10-111-8/+5
| | | | llvm-svn: 116239
* CrashRecovery: Fix raise() override to actually send the right signal, *cough*.Daniel Dunbar2010-10-081-1/+1
| | | | llvm-svn: 116072
* Correctly check if a path is a directory. Fix by Brian Korver.Evan Cheng2010-10-071-1/+1
| | | | llvm-svn: 115991
* lib/System/Win32/Signals.inc: Enable LLVM_DISABLE_CRT_DEBUG also on mingw.NAKAMURA Takumi2010-10-061-6/+2
| | | | llvm-svn: 115731
* Add an explicit initialization to work around what appears to be a valgrindDaniel Dunbar2010-09-301-1/+3
| | | | | | false positive, at least on Darwin. I haven't filed this, but you can feel free. llvm-svn: 115242
* Revert r114320(move file = copy + delete on Win32). r115040 is a better ↵Francois Pichet2010-09-301-11/+4
| | | | | | solution for the Win32 ACCESS_DENIED lit error. llvm-svn: 115114
* CrashRecovery/Darwin: Override raise() as well so that crash recovery doesn'tDaniel Dunbar2010-09-221-1/+5
| | | | | | | end up altering the thread on which crashes are done because of its use of Darwin's broken raise() implementation. llvm-svn: 114558
* Fix the "unable to rename temporary" lit test failing on Windows. rename is ↵Francois Pichet2010-09-201-4/+11
| | | | | | now copy + delete on Windows. Problem to be revisited for a permanent and clean solution. llvm-svn: 114320
* Add one more Core i7 model number.Jakob Stoklund Olesen2010-09-191-0/+2
| | | | llvm-svn: 114310
* add corei7, the laptop version.Chris Lattner2010-09-191-0/+1
| | | | llvm-svn: 114302
* Move the declaration SetInformationJobObject() outside of namespace.NAKAMURA Takumi2010-09-171-9/+9
| | | | | | It is also workaround for PR7927. llvm-svn: 114175
* System: Don't reexport ___eprintf when building with Clang; this symbol isn'tDaniel Dunbar2010-09-171-0/+7
| | | | | | | used on Darwin anymore, and Clang might not always link with the library it is currently found in. llvm-svn: 114165
* System/Path: Add x86-64 COFF to IdentifyFileType.Michael J. Spencer2010-09-151-0/+4
| | | | llvm-svn: 114037
OpenPOWER on IntegriCloud