Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge System into Support. | Michael J. Spencer | 2010-11-29 | 14 | -2638/+0 |
| | | | | llvm-svn: 120298 | ||||
* | This is the first step in adding sane error handling support to LLVMSystem. | Michael J. Spencer | 2010-11-16 | 1 | -0/+140 |
| | | | | | | | | | | | | | | | | | The system API's will be shifted over to returning an error_code, and returning other return values as out parameters to the function. Code that needs to check error conditions will use the errc enum values which are the same as the posix_errno defines (EBADF, E2BIG, etc...), and are compatable with the error codes in WinError.h due to some magic in system_error. An example would be: if (error_code ec = KillEvil("Java")) { // error_code can be converted to bool. handle_error(ec); } llvm-svn: 119360 | ||||
* | Fix Whitespace. | Michael J. Spencer | 2010-11-10 | 1 | -6/+6 |
| | | | | llvm-svn: 118683 | ||||
* | System/Win32/Path: Implement isSymLink. | Michael J. Spencer | 2010-11-10 | 1 | -1/+9 |
| | | | | llvm-svn: 118681 | ||||
* | Win32/Process.inc: [PR8527] Process::FileDescriptorIsDisplayed(fd) should ↵ | NAKAMURA Takumi | 2010-11-10 | 1 | -1/+2 |
| | | | | | | | | not check by FILE_TYPE_CHAR. It must be better to check it with Console API. The special file "NUL" is FILE_TYPE_CHAR with GetFileType(h). It was treated as display device and discarding output to NUL had failed. (eg. opt -o nul) llvm-svn: 118678 | ||||
* | System/Path/Windows: Implement GetLLVMDefaultConfigDir. | Michael J. Spencer | 2010-11-09 | 1 | -2/+4 |
| | | | | llvm-svn: 118507 | ||||
* | System/Path/Windows: Generalize GetUserHomeDirectory. | Michael J. Spencer | 2010-11-09 | 1 | -8/+9 |
| | | | | llvm-svn: 118506 | ||||
* | System/Path/Windows: Make GetSystemLibraryPaths more generic. | Michael J. Spencer | 2010-11-09 | 2 | -2/+28 |
| | | | | llvm-svn: 118505 | ||||
* | System/Windows: Reduce dependencies. | Michael J. Spencer | 2010-11-09 | 1 | -0/+1 |
| | | | | llvm-svn: 118504 | ||||
* | System/Windows: Use normalized case and include method. | Michael J. Spencer | 2010-11-09 | 1 | -1/+1 |
| | | | | llvm-svn: 118503 | ||||
* | System/Path/Windows: Change GetRootDirectory to return file:/// instead of C:/. | Michael J. Spencer | 2010-11-09 | 1 | -3/+3 |
| | | | | llvm-svn: 118502 | ||||
* | Update comment. | Michael J. Spencer | 2010-11-09 | 1 | -1/+1 |
| | | | | llvm-svn: 118501 | ||||
* | Remove contributor names as per coding statndard. | Michael J. Spencer | 2010-11-08 | 1 | -3/+0 |
| | | | | llvm-svn: 118442 | ||||
* | Add method for checking if a path is a symbolic link. | Rafael Espindola | 2010-11-07 | 1 | -0/+5 |
| | | | | llvm-svn: 118367 | ||||
* | appendSuffix: don't append a dot when the suffix is empty. | Mikhail Glushenkov | 2010-11-02 | 1 | -12/+0 |
| | | | | | | | Additionally, move the implementation of appendSuffix to Path.cpp: it is platform-independent. llvm-svn: 118089 | ||||
* | Make FindProgramByName return paths with slashes unmodified on Windows. | Mikhail Glushenkov | 2010-11-02 | 1 | -2/+4 |
| | | | | | | This makes its behaviour more consistent across platforms. llvm-svn: 118048 | ||||
* | 80-col violations. | Mikhail Glushenkov | 2010-11-02 | 1 | -3/+5 |
| | | | | llvm-svn: 118045 | ||||
* | Path: Add GetEXESuffix() to complement GetDLLSuffix(). | Mikhail Glushenkov | 2010-11-02 | 1 | -0/+5 |
| | | | | llvm-svn: 118042 | ||||
* | Make Program::Wait differentiate execution failure due to the file | Dan Gohman | 2010-10-29 | 1 | -1/+2 |
| | | | | | | being not found from the file being not executable. llvm-svn: 117664 | ||||
* | Reindent. | Mikhail Glushenkov | 2010-10-28 | 1 | -71/+71 |
| | | | | llvm-svn: 117538 | ||||
* | 80-col violation. | Mikhail Glushenkov | 2010-10-27 | 1 | -1/+2 |
| | | | | llvm-svn: 117443 | ||||
* | Remove try/catch(...) from Win32/Signals.inc. | Mikhail Glushenkov | 2010-10-27 | 1 | -6/+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 Sands | 2010-10-25 | 1 | -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 Takumi | 2010-10-22 | 1 | -0/+2 |
| | | | | | | It choked BugPoint on Mingw. llvm-svn: 117083 | ||||
* | Trailing whitespace. | Mikhail Glushenkov | 2010-10-21 | 1 | -5/+5 |
| | | | | llvm-svn: 117058 | ||||
* | Use C++03... | Michael J. Spencer | 2010-10-20 | 1 | -1/+6 |
| | | | | llvm-svn: 116927 | ||||
* | System-Win32/Path: Fix incorrect assumption in isValid. | Michael J. Spencer | 2010-10-20 | 1 | -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 | ||||
* | Add ATTRIBUTE_UNUSED for -Asserts. | NAKAMURA Takumi | 2010-10-20 | 1 | -2/+2 |
| | | | | llvm-svn: 116909 | ||||
* | lib/System/Win32/ThreadLocal.inc: Suppress "unused" warning on -Asserts. | NAKAMURA Takumi | 2010-10-19 | 1 | -0/+1 |
| | | | | llvm-svn: 116785 | ||||
* | lib/System/Win32/Signals.inc: Enable LLVM_DISABLE_CRT_DEBUG also on mingw. | NAKAMURA Takumi | 2010-10-06 | 1 | -6/+2 |
| | | | | llvm-svn: 115731 | ||||
* | Revert r114320(move file = copy + delete on Win32). r115040 is a better ↵ | Francois Pichet | 2010-09-30 | 1 | -11/+4 |
| | | | | | | solution for the Win32 ACCESS_DENIED lit error. llvm-svn: 115114 | ||||
* | Fix the "unable to rename temporary" lit test failing on Windows. rename is ↵ | Francois Pichet | 2010-09-20 | 1 | -4/+11 |
| | | | | | | now copy + delete on Windows. Problem to be revisited for a permanent and clean solution. llvm-svn: 114320 | ||||
* | Move the declaration SetInformationJobObject() outside of namespace. | NAKAMURA Takumi | 2010-09-17 | 1 | -9/+9 |
| | | | | | | It is also workaround for PR7927. llvm-svn: 114175 | ||||
* | Add an interface for unregistering a file from the FilesToRemove list. | Dan Gohman | 2010-09-01 | 1 | -0/+14 |
| | | | | llvm-svn: 112705 | ||||
* | System: Fix getMagicNumber on windows. | Michael J. Spencer | 2010-08-31 | 1 | -3/+2 |
| | | | | | | | | | | getMagicNumber was treating the _binary_ data it read in as a null terminated string. This resulted in the std::string calculating the length, and causing an assert in other code that assumed that the length it passed was the same as the length of the string it would get back. llvm-svn: 112586 | ||||
* | Don't cast Win32 FILETIME structs to int64. Patch by Dimitry Andric! | Michael J. Spencer | 2010-08-28 | 1 | -3/+8 |
| | | | | | | | | | | | | | | | According to the Microsoft documentation here: http://msdn.microsoft.com/en-us/library/ms724284%28VS.85%29.aspx this cast used in lib/System/Win32/Path.inc: __int64 ft = *reinterpret_cast<__int64*>(&fi.ftLastWriteTime); should not be done. The documentation says: "Do not cast a pointer to a FILETIME structure to either a ULARGE_INTEGER* or __int64* value because it can cause alignment faults on 64-bit Windows." llvm-svn: 112376 | ||||
* | Add an erase() method to llvm::ThreadLocal. | Owen Anderson | 2010-07-28 | 1 | -0/+4 |
| | | | | llvm-svn: 109686 | ||||
* | Convert some tab stops into spaces. | Duncan Sands | 2010-07-12 | 1 | -1/+1 |
| | | | | llvm-svn: 108130 | ||||
* | Path::isRootDirectory is unimplemented on Unix and not used, | Chris Lattner | 2010-07-12 | 1 | -6/+0 |
| | | | | | | remove it, fixing PR6909. llvm-svn: 108125 | ||||
* | Add llvm::sys::RunInterruptHandlers(), which runs the registered SIGINT cleanup | Daniel Dunbar | 2010-05-08 | 1 | -0/+4 |
| | | | | | | stuff. llvm-svn: 103333 | ||||
* | AddSignalHandler was not releasing the critical section on win32. | Torok Edwin | 2010-03-31 | 1 | -0/+1 |
| | | | | | | Patch from Gianluigi Tiesi! llvm-svn: 100003 | ||||
* | 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 superfluous NULL assignment | Kovarththanan Rajaratnam | 2010-03-12 | 1 | -11/+11 |
| | | | | llvm-svn: 98350 | ||||
* | Add llvm::Program::ChangeStderrToBinary(). | Douglas Gregor | 2010-01-28 | 1 | -0/+5 |
| | | | | llvm-svn: 94743 | ||||
* | Remove spurious semicolon. | Anton Korobeynikov | 2010-01-14 | 1 | -21/+21 |
| | | | | | | Patch by Diego Iastrubni! llvm-svn: 93450 | ||||
* | 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 | 1 | -15/+15 |
| | | | | llvm-svn: 91620 | ||||
* | API change Path::isSpecialFile to Path::isRegularFile, improve semantics in ↵ | Edward O'Callaghan | 2009-11-25 | 1 | -2/+4 |
| | | | | | | regards to comments from 89765 post review. llvm-svn: 89848 | ||||
* | Provide Path::isSpecialFile interface for PR5568. | Edward O'Callaghan | 2009-11-24 | 1 | -0/+5 |
| | | | | llvm-svn: 89765 | ||||
* | Path::createDirectoryOnDisk should ignore existing directories on win32 too. | Benjamin Kramer | 2009-11-05 | 1 | -2/+4 |
| | | | | llvm-svn: 86132 |