- May 23, 2013
-
-
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
-
Chad Rosier authored
llvm-svn: 182534
-
David Blaikie authored
llvm-svn: 182533
-
David Blaikie authored
There were bits & pieces of code lying around that may've given the impression that debug info metadata supported the possibility that a subprogram's type could be specified by a non-subroutine type describing the return type of a void function. This support was incomplete & unnecessary. Asserts & API have been changed to make the desired usage more clear. llvm-svn: 182532
-
Chad Rosier authored
llvm-svn: 182531
-
Greg Clayton authored
Added logging for the OS plug-in python objects in OperatingSystemPython so we can see the python dictionary returned from the plug-in when logging is enabled. llvm-svn: 182530
-
rdar://problem/13963648Han Ming Ong authored
Changes after feedback: Directly use function pointer, just to be safer on 10.8. llvm-svn: 182529
-
Sean Callanan authored
live as long as they needed to. This led to equality tests involving persistent variables often failing or succeeding when they had no business doing so. To do this, I introduced the ability for a memory allocation to "leak" - that is, to persist in the process beyond the lifetime of the expression. Hand-declared persistent variables do this now. <rdar://problem/13956311> llvm-svn: 182528
-
Chad Rosier authored
llvm-svn: 182527
-
Chad Rosier authored
llvm-svn: 182526
-
- May 22, 2013
-
-
Adrian Prantl authored
rdar://problem/13359718 llvm-svn: 182524
-
rdar://problem/13963648Han Ming Ong authored
Collect 'anonymous memory' info, if possible llvm-svn: 182523
-
Rui Ueyama authored
Summary: "W" bit value was not consistent in ContentPermissions enum. It should always be 2. Reviewers: kledzik CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D810 llvm-svn: 182515
-
Pete Cooper authored
llvm-svn: 182514
-