- May 23, 2013
-
-
Benjamin Kramer authored
Lets us use a SetVector instead of an explicit set + vector combination. llvm-svn: 182586
-
Aaron Ballman authored
Setting the default value (fixes CRT assertions about uninitialized variable use when doing debug MSVC builds), and fixing coding style. llvm-svn: 182585
-
Rafael Espindola authored
The error was: error: non-constant-expression cannot be narrowed from type 'long long' to 'long' in initializer list [-Wc++11-narrowing] MI.getOperand(6).getImm() & 0x1F, llvm-svn: 182584
-
Sergey Matveev authored
"check-lsan" now runs both the tests from lib/lsan/tests and any lit tests found under lib/lsan/lit_tests. llvm-svn: 182583
-
Alexander Potapenko authored
llvm-svn: 182582
-
Evgeniy Stepanov authored
llvm-svn: 182580
-
Alexander Potapenko authored
[ASan] Introduce SymbolizerPrepareForSandboxing(), which is a no-op on every platform except Linux (because we don't support sandboxing anywhere else yet) On Linux we pre-cache the value of readlink("/proc/self/exe"), so that it can be later used when the sandbox has been turned on. llvm-svn: 182579
-
Evgeniy Stepanov authored
llvm-svn: 182578
-
Manuel Klimek authored
Previously we would align: f(); // comment // other comment g(); Even if // other comment was at the start of the line. Now we do not align trailing comments if they have been already aligned correctly with the next line. Thus, f(); // comment // other comment g(); will not be changed, while: f(); // comment // other commment g(); will lead to the two trailing comments being aligned. llvm-svn: 182577
-
Evgeniy Stepanov authored
llvm-svn: 182576
-
Timur Iskhodzhanov authored
llvm-svn: 182575
-
Evgeniy Stepanov authored
llvm-svn: 182574
-
Evgeniy Stepanov authored
llvm-svn: 182573
-
Manuel Klimek authored
Replaces the use of WhitespaceStart + WhitspaceLength. This made a bug in the formatter obvous where we would incorrectly calculate the next column. FIXME: There's a similar bug left regarding TokenLength. We should probably also move to have a TokenRange instead. llvm-svn: 182572
-
Sergey Matveev authored
Also remove unnecessary ifdefs. llvm-svn: 182571
-
Daniel Jasper authored
Before: vector<int> x { 1, 2, 3 }; After: vector<int> x{ 1, 2, 3 }; Also add a style option to remove the spaces inside braced lists, so that the above becomes: std::vector<int> v{1, 2, 3}; llvm-svn: 182570
-
Manuel Klimek authored
llvm-svn: 182569
-
Manuel Klimek authored
Allows formatting of C++11 braced init list constructs, like: vector<int> v { 1, 2, 3 }; f({ 1, 2 }); This involves some changes of how tokens are handled in the UnwrappedLineFormatter. Note that we have a plan to evolve the design of the token flow into one where we create all tokens up-front and then annotate them in the various layers (as we currently already have to create all tokens at once anyway, the current abstraction does not help). Thus, this introduces FIXMEs towards that goal. llvm-svn: 182568
-
Alexander Potapenko authored
[ASan] Rename __asan_preinit to __local_asan_preinit to avoid warnings from the linker which is trying to export all the __asan_* symbols llvm-svn: 182567
-
Nick Lewycky authored
llvm-svn: 182564
-
Bill Wendling authored
Using fwrite and fread was very *very* slow. The resulting code was multiple times slower than GCC's implementation of gcov. Replace the fwrite/fread system with an mmap() version. If the `.gcda' file doesn't exist, we (re)allocate a buffer that we write into. That gets written to the `.gcda' file in one chunk. If the `.gcda' file already exists, we simply mmap() the file, modify the mapped data, and use msync() to write the contents out to disk. It's much easier than implementing our own buffering scheme, and we don't have to use fwrite's and fread's buffering. For those who are numbers-oriented, here are some timings: GCC Verison ----------- `.gcda' files don't exist: 23s `.gcda' files do exist: 14s LLVM Version (before this change) --------------------------------- `.gcda' files don't exist: 28s `.gcda' files do exist: 28s LLVM Version (with this change) ------------------------------- `.gcda' files don't exist: 18s `.gcda' files do exist: 4s It's a win-win-win-win-lose-win-win scenario! <rdar://problem/13466086> llvm-svn: 182563
-
Ted Kremenek authored
llvm-svn: 182562
-
Rafael Espindola authored
This should bring the valgrind bot back to life. llvm-svn: 182561
-
Rafael Espindola authored
llvm-svn: 182560
-
Rafael Espindola authored
These are not needed since we added the $ORIGIN based rpath. Fixes pr12517. llvm-svn: 182559
-
Rafael Espindola authored
llvm-svn: 182558
-
Michael Gottesman authored
[objc-arc] Fixed number of prefixing slashes in some comments in a function from 3 to 2 to match the rest of ObjCARCOpts. llvm-svn: 182557
-
Michael Gottesman authored
llvm-svn: 182556
-
Michael Gottesman authored
Updated the comments of APInt.h to match the llvm style guide and be consistent. No functionality change. llvm-svn: 182555
-
Sean Callanan authored
removed the bitfields. This should be conforming C++11, though, cf. C++03 9.6(3): " A bit-field shall have integral or enumeration type (3.9.1). " llvm-svn: 182545
-
Richard Smith authored
specialization with modules enabled. Just don't merge them at all for now; we'll revisit this when support for template merging is added. In passing, make Decl::dump() a little safer to use with PCH/modules, by making it not deserialize any additional declarations. From a debugger you can call decls_begin() or similar first if you want to dump all child decls. llvm-svn: 182544
-
Rui Ueyama authored
DEBUG_TYPE is already defined at the beginning of this file. We don't want to have two different debug flags for a single pass. Reviewers: shankarke CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D845 llvm-svn: 182543
-
Kevin Enderby authored
API with my 176880 revision. If a bad Triple is passed in it can also assert. In this case too it should just return 0 to indicate failure to create the disassembler. rdar://13955214 llvm-svn: 182542
-
Richard Smith authored
* Treat _Atomic(T) as a literal type if T is a literal type. * Evaluate expressions of this type properly. * Fix a lurking bug where we built completely bogus ASTs for converting to _Atomic types in C++ in some cases, caught by the tests for this change. llvm-svn: 182541
-
Greg Clayton authored
llvm-svn: 182540
-
Michael Sartain authored
Patch by Matthew Sorrels llvm-svn: 182539
-
Greg Clayton authored
llvm-svn: 182538
-
Greg Clayton authored
llvm-svn: 182537
-
Chad Rosier authored
llvm-svn: 182536
-
Aaron Ballman authored
Adding in parsing and the start of semantic support for __sptr and __uptr pointer type qualifiers. This patch also fixes the correlated __ptr32 and __ptr64 pointer qualifiers so that they are truly type attributes instead of declaration attributes. For more information about __sptr and __uptr, see MSDN: http://msdn.microsoft.com/en-us/library/aa983399.aspx Patch reviewed by Richard Smith. llvm-svn: 182535
-