summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Windows
Commit message (Collapse)AuthorAgeFilesLines
* Fix a -Wparentheses warning in the mingw buildNico Weber2012-09-251-1/+1
| | | | llvm-svn: 164587
* This patch adds memory support functions which will later be used to ↵Andrew Kaylor2012-09-191-26/+139
| | | | | | implement section-specific protection handling in MCJIT. llvm-svn: 164249
* Properly test the LLVM_USE_RVALUE_REFERENCES macro.Michael J. Spencer2012-08-151-1/+1
| | | | llvm-svn: 161978
* [PathV2] Add mapped_file_region. Implementation for Windows and POSIX.Michael J. Spencer2012-08-151-0/+199
| | | | llvm-svn: 161976
* Try to unbreak the windows build.Benjamin Kramer2012-07-201-1/+1
| | | | llvm-svn: 160567
* Process: Add sys::Process::FileDescriptorHasColors().Daniel Dunbar2012-07-201-4/+8
| | | | llvm-svn: 160557
* Remove tabs.Bill Wendling2012-07-192-4/+4
| | | | llvm-svn: 160476
* Unbreak the MSVC build: add return to unimplemented functions.Francois Pichet2012-06-201-0/+2
| | | | llvm-svn: 158788
* Add permissions(), map_file_pages(), and unmap_file_pages() to llvm::sys::fs ↵Nick Kledzik2012-06-201-0/+46
| | | | | | and add unit test. Unix is implemented. Windows side needs to be implemented. llvm-svn: 158770
* Satisfy C++ aliasing rules, per suggestion by Chandler.Argyrios Kyrtzidis2012-06-121-1/+1
| | | | llvm-svn: 158346
* For llvm::sys::ThreadLocalImpl instead of malloc'ing the platform-specificArgyrios Kyrtzidis2012-06-121-7/+6
| | | | | | | | | | | thread local data, embed them in the class using a uint64_t and make sure we get compiler errors if there's a platform where this is not big enough. This makes ThreadLocal more safe for using it in conjunction with CrashRecoveryContext. Related to crash in rdar://11434201. llvm-svn: 158342
* Disabling a spurious deprecation warning about using PathV1 from within the ↵Aaron Ballman2012-06-091-0/+10
| | | | | | PathV1 implementation file. llvm-svn: 158274
* Fixing a typo in the comments.Aaron Ballman2012-06-091-1/+1
| | | | llvm-svn: 158273
* Path::GetTemporaryDirectory(): Add an assertion if TempDirectory is alive, ↵NAKAMURA Takumi2012-05-271-1/+3
| | | | | | to check when someone would remove the tempdir. llvm-svn: 157529
* Allow unique_file to take a mode for file permissions, but defaultEric Christopher2012-05-111-2/+4
| | | | | | | | to user only read/write. Part of rdar://11325849 llvm-svn: 156591
* Windows/PathV2.inc: Retry rename() for (maximum) 2 seconds.NAKAMURA Takumi2012-05-081-4/+14
| | | | | | Files might be opend by system scanners (eg. file indexer, virus scanner, &c). llvm-svn: 156380
* Reapply 'Add reverseColor to raw_ostream'.Benjamin Kramer2012-04-161-0/+32
| | | | | | | To be used in printing unprintable source in clang diagnostics. Patch by Seth Cantrell, with a minor fix for mingw by me. llvm-svn: 154805
* Revert r154800 which breaks windows builders.Argyrios Kyrtzidis2012-04-161-33/+0
| | | | llvm-svn: 154802
* Add reverseColor to raw_ostream.Argyrios Kyrtzidis2012-04-161-0/+33
| | | | | | | To be used in printing unprintable source in clang diagnostics. Patch by Seth Cantrell! llvm-svn: 154800
* Change default error_code ctor to a 'named ctor' so it's more self-documenting.David Blaikie2012-02-091-21/+21
| | | | | | | | | | | Unify default construction of error_code uses on this idiom so that users don't feel compelled to make static globals for naming convenience. (unfortunately I couldn't make the original ctor private as some APIs don't return their result, instead using an out parameter (that makes sense to default construct) - which is a bit of a pity. I did, however, find/fix some cases of unnecessary default construction of error_code before I hit the unfixable cases) llvm-svn: 150197
* Remove SetWorkingDirectory from the Process interface. Nothing in LLVMChandler Carruth2012-01-151-4/+0
| | | | | | | | | | | | or Clang is using this, and it would be hard to use it correctly given the thread hostility of the function. Also, it never checked the return which is rather dangerous with chdir. If someone was in fact using this, please let me know, as well as what the usecase actually is so that I can add it back and make it more correct and secure to use. (That said, it's never going to be "safe" per-se, but we could at least document the risks...) llvm-svn: 148211
* Disable the crash reporter when running lit tests.Argyrios Kyrtzidis2012-01-111-1/+1
| | | | llvm-svn: 147965
* revert r147542 after comments from Joerg SonnenbergerSebastian Pop2012-01-051-4/+0
| | | | llvm-svn: 147608
* use getHostTriple instead of getDefaultTargetTriple in getClosestTargetForJITSebastian Pop2012-01-041-0/+4
| | | | | | | | | | Get back getHostTriple. For JIT compilation, use the host triple instead of the default target: this fixes some JIT testcases that used to fail when the compiler has been configured as a cross compiler. llvm-svn: 147542
* Support/Program: Make Change<stream>ToBinary return error_code.Michael J. Spencer2011-12-131-6/+12
| | | | llvm-svn: 146522
* Revert r146363 to allow buildbots to make forward progress.Chad Rosier2011-12-122-58/+0
| | | | | | | Original commit message: Support/FileSystem: Implement canonicalize. llvm-svn: 146378
* Support/FileSystem: Implement bool equivalent(file_status A, file_status B);Michael J. Spencer2011-12-121-62/+38
| | | | llvm-svn: 146364
* Support/FileSystem: Implement canonicalize.Michael J. Spencer2011-12-122-0/+58
| | | | llvm-svn: 146363
* Support/Windows: Cleanup scoped handles.Michael J. Spencer2011-12-123-58/+77
| | | | llvm-svn: 146362
* Support/FileSystem: Implement recursive_directory_iterator and makeMichael J. Spencer2011-12-081-6/+7
| | | | | | directory_iterator preserve InputIterator semantics on copy. llvm-svn: 146200
* [Win32] Catch exceptions (eg. segfault) on waiting for invoked clang from ↵NAKAMURA Takumi2011-11-292-2/+12
| | | | | | | | | | | | the driver. clang/lib/Driver/Driver.cpp: Don't pass through negative exit status, or parent would be confused. llvm::sys::Program::Wait(): Suppose 0x8000XXXX and 0xC000XXXX as abnormal exit code and pass it as negative value. Win32 Exception Handler: Exit with ExceptionCode on an unhandle exception. llvm-svn: 145389
* Return only the least significant 8 bits of the exit status fromPeter Collingbourne2011-11-061-1/+1
| | | | | | Process::Wait on Windows (mimicing POSIX behaviour). llvm-svn: 143876
* rename getHostTriple into getDefaultTargetTripleSebastian Pop2011-11-011-1/+1
| | | | llvm-svn: 143502
* rename LLVM_HOSTTRIPLE into LLVM_DEFAULT_TARGET_TRIPLESebastian Pop2011-11-011-2/+1
| | | | llvm-svn: 143501
* Remove a couple unused methods. PR11201.Eli Friedman2011-11-011-8/+0
| | | | llvm-svn: 143452
* Windows/Path.inc: [PR8460] Get rid of ScopedNullTerminator. Thanks to Zvi ↵NAKAMURA Takumi2011-10-241-18/+9
| | | | | | Rackover! llvm-svn: 142785
* Fix build on mingw-w64.Anton Korobeynikov2011-10-211-6/+8
| | | | | | Patch by Ruben Van Boxem! llvm-svn: 142646
* Revert r142046, "Fix for llvm::sys::getHostTriple on Windows. Instead of ↵NAKAMURA Takumi2011-10-151-36/+4
| | | | | | | | | | relying on the triple" It extremely breaks builds when optimization is enabled. Twine should not hold temporary objects. By the way, I might feel sad if I saw "i786-" "i1586-" or "iF86-". llvm-svn: 142055
* Fix for llvm::sys::getHostTriple on Windows. Instead of relying on the tripleChad Rosier2011-10-151-4/+36
| | | | | | | | from config.h, it discovers the triple based on the execution environment. Patch by Aaron Ballman <aaron@aaronballman.com> llvm-svn: 142046
* Windows/Memory.inc: Support the ability to allocate memory "near" another ↵NAKAMURA Takumi2011-10-151-2/+7
| | | | | | | | block of memory on Win32. It has fixed FIXME. Thanks to Aaron Ballman! llvm-svn: 142039
* Support/Windows: Add support modifying memory permissions on Windows. Patch ↵Michael J. Spencer2011-10-131-3/+45
| | | | | | by Aaron Ballman! llvm-svn: 141910
* Support/Windows: Add efficent RW mutex on Windows. Patch by Aaron Ballman!Michael J. Spencer2011-10-131-11/+87
| | | | llvm-svn: 141907
* Add Windows x64 stack walking support. Patch by Aaron Ballman!Michael J. Spencer2011-10-011-32/+190
| | | | llvm-svn: 140906
* sys::Process: Add a SetWorkingDirectory method.Daniel Dunbar2011-09-231-0/+5
| | | | llvm-svn: 140433
* lib/Support/Windows/Windows.h: Update required IE ver. 0x0600 should be ↵NAKAMURA Takumi2011-08-231-1/+1
| | | | | | enough for Windows XP. llvm-svn: 138319
* Make DynamicLibrary thread-safe w/r/t call to dlerror() after dlopen(). PR10718Jordy Rose2011-08-221-2/+2
| | | | llvm-svn: 138260
* PathV2: Handle more reserved filenames on windows.Benjamin Kramer2011-08-201-2/+24
| | | | | | Patch by Aaron Ballman! llvm-svn: 138213
* lib/Support/Windows/Windows.h: Require at least Windows XP(5.1) API. We will ↵NAKAMURA Takumi2011-08-201-2/+2
| | | | | | not support Windows 2000 any more. llvm-svn: 138198
* Unbork Windows build. Thanks, Francois.Jordy Rose2011-08-171-2/+2
| | | | llvm-svn: 137798
* Use DynamicLibrary instances as a way to get symbols from a specific ↵Jordy Rose2011-08-171-26/+52
| | | | | | library. Preparation for upcoming (preliminary) support for plugins for the static analyzer. llvm-svn: 137791
OpenPOWER on IntegriCloud