summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32
Commit message (Collapse)AuthorAgeFilesLines
* Merge System into Support.Michael J. Spencer2010-11-2914-2638/+0
| | | | llvm-svn: 120298
* This is the first step in adding sane error handling support to LLVMSystem.Michael J. Spencer2010-11-161-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. Spencer2010-11-101-6/+6
| | | | llvm-svn: 118683
* System/Win32/Path: Implement isSymLink.Michael J. Spencer2010-11-101-1/+9
| | | | llvm-svn: 118681
* Win32/Process.inc: [PR8527] Process::FileDescriptorIsDisplayed(fd) should ↵NAKAMURA Takumi2010-11-101-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. Spencer2010-11-091-2/+4
| | | | llvm-svn: 118507
* System/Path/Windows: Generalize GetUserHomeDirectory.Michael J. Spencer2010-11-091-8/+9
| | | | llvm-svn: 118506
* System/Path/Windows: Make GetSystemLibraryPaths more generic.Michael J. Spencer2010-11-092-2/+28
| | | | llvm-svn: 118505
* System/Windows: Reduce dependencies.Michael J. Spencer2010-11-091-0/+1
| | | | llvm-svn: 118504
* System/Windows: Use normalized case and include method.Michael J. Spencer2010-11-091-1/+1
| | | | llvm-svn: 118503
* System/Path/Windows: Change GetRootDirectory to return file:/// instead of C:/.Michael J. Spencer2010-11-091-3/+3
| | | | llvm-svn: 118502
* Update comment.Michael J. Spencer2010-11-091-1/+1
| | | | llvm-svn: 118501
* 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-071-0/+5
| | | | llvm-svn: 118367
* appendSuffix: don't append a dot when the suffix is empty.Mikhail Glushenkov2010-11-021-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 Glushenkov2010-11-021-2/+4
| | | | | | 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-021-0/+5
| | | | llvm-svn: 118042
* Make Program::Wait differentiate execution failure due to the fileDan Gohman2010-10-291-1/+2
| | | | | | being not found from the file being not executable. llvm-svn: 117664
* 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-271-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 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
* Add ATTRIBUTE_UNUSED for -Asserts.NAKAMURA Takumi2010-10-201-2/+2
| | | | llvm-svn: 116909
* lib/System/Win32/ThreadLocal.inc: Suppress "unused" warning on -Asserts.NAKAMURA Takumi2010-10-191-0/+1
| | | | llvm-svn: 116785
* lib/System/Win32/Signals.inc: Enable LLVM_DISABLE_CRT_DEBUG also on mingw.NAKAMURA Takumi2010-10-061-6/+2
| | | | llvm-svn: 115731
* 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
* 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
* Move the declaration SetInformationJobObject() outside of namespace.NAKAMURA Takumi2010-09-171-9/+9
| | | | | | It is also workaround for PR7927. llvm-svn: 114175
* Add an interface for unregistering a file from the FilesToRemove list.Dan Gohman2010-09-011-0/+14
| | | | llvm-svn: 112705
* System: Fix getMagicNumber on windows.Michael J. Spencer2010-08-311-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. Spencer2010-08-281-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 Anderson2010-07-281-0/+4
| | | | llvm-svn: 109686
* Convert some tab stops into spaces.Duncan Sands2010-07-121-1/+1
| | | | llvm-svn: 108130
* Path::isRootDirectory is unimplemented on Unix and not used,Chris Lattner2010-07-121-6/+0
| | | | | | remove it, fixing PR6909. llvm-svn: 108125
* Add llvm::sys::RunInterruptHandlers(), which runs the registered SIGINT cleanupDaniel Dunbar2010-05-081-0/+4
| | | | | | stuff. llvm-svn: 103333
* AddSignalHandler was not releasing the critical section on win32.Torok Edwin2010-03-311-0/+1
| | | | | | Patch from Gianluigi Tiesi! llvm-svn: 100003
* 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 superfluous NULL assignmentKovarththanan Rajaratnam2010-03-121-11/+11
| | | | llvm-svn: 98350
* Add llvm::Program::ChangeStderrToBinary().Douglas Gregor2010-01-281-0/+5
| | | | llvm-svn: 94743
* Remove spurious semicolon.Anton Korobeynikov2010-01-141-21/+21
| | | | | | Patch by Diego Iastrubni! llvm-svn: 93450
* 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-171-15/+15
| | | | llvm-svn: 91620
* API change Path::isSpecialFile to Path::isRegularFile, improve semantics in ↵Edward O'Callaghan2009-11-251-2/+4
| | | | | | regards to comments from 89765 post review. llvm-svn: 89848
* Provide Path::isSpecialFile interface for PR5568.Edward O'Callaghan2009-11-241-0/+5
| | | | llvm-svn: 89765
* Path::createDirectoryOnDisk should ignore existing directories on win32 too.Benjamin Kramer2009-11-051-2/+4
| | | | llvm-svn: 86132
OpenPOWER on IntegriCloud