Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix a -Wparentheses warning in the mingw build | Nico Weber | 2012-09-25 | 1 | -1/+1 |
| | | | | llvm-svn: 164587 | ||||
* | This patch adds memory support functions which will later be used to ↵ | Andrew Kaylor | 2012-09-19 | 1 | -26/+139 |
| | | | | | | implement section-specific protection handling in MCJIT. llvm-svn: 164249 | ||||
* | Properly test the LLVM_USE_RVALUE_REFERENCES macro. | Michael J. Spencer | 2012-08-15 | 1 | -1/+1 |
| | | | | llvm-svn: 161978 | ||||
* | [PathV2] Add mapped_file_region. Implementation for Windows and POSIX. | Michael J. Spencer | 2012-08-15 | 1 | -0/+199 |
| | | | | llvm-svn: 161976 | ||||
* | Try to unbreak the windows build. | Benjamin Kramer | 2012-07-20 | 1 | -1/+1 |
| | | | | llvm-svn: 160567 | ||||
* | Process: Add sys::Process::FileDescriptorHasColors(). | Daniel Dunbar | 2012-07-20 | 1 | -4/+8 |
| | | | | llvm-svn: 160557 | ||||
* | Remove tabs. | Bill Wendling | 2012-07-19 | 2 | -4/+4 |
| | | | | llvm-svn: 160476 | ||||
* | Unbreak the MSVC build: add return to unimplemented functions. | Francois Pichet | 2012-06-20 | 1 | -0/+2 |
| | | | | llvm-svn: 158788 | ||||
* | Add permissions(), map_file_pages(), and unmap_file_pages() to llvm::sys::fs ↵ | Nick Kledzik | 2012-06-20 | 1 | -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 Kyrtzidis | 2012-06-12 | 1 | -1/+1 |
| | | | | llvm-svn: 158346 | ||||
* | For llvm::sys::ThreadLocalImpl instead of malloc'ing the platform-specific | Argyrios Kyrtzidis | 2012-06-12 | 1 | -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 Ballman | 2012-06-09 | 1 | -0/+10 |
| | | | | | | PathV1 implementation file. llvm-svn: 158274 | ||||
* | Fixing a typo in the comments. | Aaron Ballman | 2012-06-09 | 1 | -1/+1 |
| | | | | llvm-svn: 158273 | ||||
* | Path::GetTemporaryDirectory(): Add an assertion if TempDirectory is alive, ↵ | NAKAMURA Takumi | 2012-05-27 | 1 | -1/+3 |
| | | | | | | to check when someone would remove the tempdir. llvm-svn: 157529 | ||||
* | Allow unique_file to take a mode for file permissions, but default | Eric Christopher | 2012-05-11 | 1 | -2/+4 |
| | | | | | | | | to user only read/write. Part of rdar://11325849 llvm-svn: 156591 | ||||
* | Windows/PathV2.inc: Retry rename() for (maximum) 2 seconds. | NAKAMURA Takumi | 2012-05-08 | 1 | -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 Kramer | 2012-04-16 | 1 | -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 Kyrtzidis | 2012-04-16 | 1 | -33/+0 |
| | | | | llvm-svn: 154802 | ||||
* | Add reverseColor to raw_ostream. | Argyrios Kyrtzidis | 2012-04-16 | 1 | -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 Blaikie | 2012-02-09 | 1 | -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 LLVM | Chandler Carruth | 2012-01-15 | 1 | -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 Kyrtzidis | 2012-01-11 | 1 | -1/+1 |
| | | | | llvm-svn: 147965 | ||||
* | revert r147542 after comments from Joerg Sonnenberger | Sebastian Pop | 2012-01-05 | 1 | -4/+0 |
| | | | | llvm-svn: 147608 | ||||
* | use getHostTriple instead of getDefaultTargetTriple in getClosestTargetForJIT | Sebastian Pop | 2012-01-04 | 1 | -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. Spencer | 2011-12-13 | 1 | -6/+12 |
| | | | | llvm-svn: 146522 | ||||
* | Revert r146363 to allow buildbots to make forward progress. | Chad Rosier | 2011-12-12 | 2 | -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. Spencer | 2011-12-12 | 1 | -62/+38 |
| | | | | llvm-svn: 146364 | ||||
* | Support/FileSystem: Implement canonicalize. | Michael J. Spencer | 2011-12-12 | 2 | -0/+58 |
| | | | | llvm-svn: 146363 | ||||
* | Support/Windows: Cleanup scoped handles. | Michael J. Spencer | 2011-12-12 | 3 | -58/+77 |
| | | | | llvm-svn: 146362 | ||||
* | Support/FileSystem: Implement recursive_directory_iterator and make | Michael J. Spencer | 2011-12-08 | 1 | -6/+7 |
| | | | | | | directory_iterator preserve InputIterator semantics on copy. llvm-svn: 146200 | ||||
* | [Win32] Catch exceptions (eg. segfault) on waiting for invoked clang from ↵ | NAKAMURA Takumi | 2011-11-29 | 2 | -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 from | Peter Collingbourne | 2011-11-06 | 1 | -1/+1 |
| | | | | | | Process::Wait on Windows (mimicing POSIX behaviour). llvm-svn: 143876 | ||||
* | rename getHostTriple into getDefaultTargetTriple | Sebastian Pop | 2011-11-01 | 1 | -1/+1 |
| | | | | llvm-svn: 143502 | ||||
* | rename LLVM_HOSTTRIPLE into LLVM_DEFAULT_TARGET_TRIPLE | Sebastian Pop | 2011-11-01 | 1 | -2/+1 |
| | | | | llvm-svn: 143501 | ||||
* | Remove a couple unused methods. PR11201. | Eli Friedman | 2011-11-01 | 1 | -8/+0 |
| | | | | llvm-svn: 143452 | ||||
* | Windows/Path.inc: [PR8460] Get rid of ScopedNullTerminator. Thanks to Zvi ↵ | NAKAMURA Takumi | 2011-10-24 | 1 | -18/+9 |
| | | | | | | Rackover! llvm-svn: 142785 | ||||
* | Fix build on mingw-w64. | Anton Korobeynikov | 2011-10-21 | 1 | -6/+8 |
| | | | | | | Patch by Ruben Van Boxem! llvm-svn: 142646 | ||||
* | Revert r142046, "Fix for llvm::sys::getHostTriple on Windows. Instead of ↵ | NAKAMURA Takumi | 2011-10-15 | 1 | -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 triple | Chad Rosier | 2011-10-15 | 1 | -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 Takumi | 2011-10-15 | 1 | -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. Spencer | 2011-10-13 | 1 | -3/+45 |
| | | | | | | by Aaron Ballman! llvm-svn: 141910 | ||||
* | Support/Windows: Add efficent RW mutex on Windows. Patch by Aaron Ballman! | Michael J. Spencer | 2011-10-13 | 1 | -11/+87 |
| | | | | llvm-svn: 141907 | ||||
* | Add Windows x64 stack walking support. Patch by Aaron Ballman! | Michael J. Spencer | 2011-10-01 | 1 | -32/+190 |
| | | | | llvm-svn: 140906 | ||||
* | sys::Process: Add a SetWorkingDirectory method. | Daniel Dunbar | 2011-09-23 | 1 | -0/+5 |
| | | | | llvm-svn: 140433 | ||||
* | lib/Support/Windows/Windows.h: Update required IE ver. 0x0600 should be ↵ | NAKAMURA Takumi | 2011-08-23 | 1 | -1/+1 |
| | | | | | | enough for Windows XP. llvm-svn: 138319 | ||||
* | Make DynamicLibrary thread-safe w/r/t call to dlerror() after dlopen(). PR10718 | Jordy Rose | 2011-08-22 | 1 | -2/+2 |
| | | | | llvm-svn: 138260 | ||||
* | PathV2: Handle more reserved filenames on windows. | Benjamin Kramer | 2011-08-20 | 1 | -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 Takumi | 2011-08-20 | 1 | -2/+2 |
| | | | | | | not support Windows 2000 any more. llvm-svn: 138198 | ||||
* | Unbork Windows build. Thanks, Francois. | Jordy Rose | 2011-08-17 | 1 | -2/+2 |
| | | | | llvm-svn: 137798 | ||||
* | Use DynamicLibrary instances as a way to get symbols from a specific ↵ | Jordy Rose | 2011-08-17 | 1 | -26/+52 |
| | | | | | | library. Preparation for upcoming (preliminary) support for plugins for the static analyzer. llvm-svn: 137791 |