Revision tags: llvmorg-3.4.1-rc1 |
|
#
02548c08 |
| 06-Mar-2014 |
Ted Kremenek <kremenek@apple.com> |
Remove dead code I introduced 6 years, 4 months ago in r43518.
Found by -Wunreachable-code.
llvm-svn: 203167
|
#
867ea1d4 |
| 02-Mar-2014 |
Benjamin Kramer <benny.kra@googlemail.com> |
[C++11] Replace llvm::tie with std::tie.
llvm-svn: 202639
|
#
588c9372 |
| 19-Feb-2014 |
Reid Kleckner <reid@kleckner.net> |
Use llvm::DeleteContainerSeconds when possible
llvm-svn: 201739
|
Revision tags: llvmorg-3.4.0, llvmorg-3.4.0-rc3, llvmorg-3.4.0-rc2 |
|
#
aa61cbbe |
| 24-Nov-2013 |
James Dennett <jdennett@google.com> |
Fix a typo: "SLocEnty" should read "SLocEntry".
llvm-svn: 195563
|
Revision tags: llvmorg-3.4.0-rc1 |
|
#
ef1cf830 |
| 18-Nov-2013 |
Aaron Ballman <aaron@aaronballman.com> |
Adding an assert to help catch possible buffer underruns.
llvm-svn: 195024
|
#
e7800df4 |
| 27-Sep-2013 |
Benjamin Kramer <benny.kra@googlemail.com> |
SourceManager: Open code isInMainFile.
- We really shouldn't compute line numbers for every file that is asked if it's the main file, it destroys the lazy computation. - Invalid locations are no l
SourceManager: Open code isInMainFile.
- We really shouldn't compute line numbers for every file that is asked if it's the main file, it destroys the lazy computation. - Invalid locations are no longer accounted to the main file, no other functionality change.
llvm-svn: 191535
show more ...
|
#
6d8cf83a |
| 29-Jul-2013 |
Alexander Kornienko <alexfh@google.com> |
Simplified SourceManager::translateLineCol a bit.
Reviewers: rsmith
Reviewed By: rsmith
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1183
llvm-svn: 187386
|
#
073ff101 |
| 29-Jul-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Update for llvm api change.
llvm-svn: 187379
|
#
74ca78ed |
| 29-Jul-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Convert a use of status with llvm::sys::fs::getUniqueID.
llvm-svn: 187367
|
Revision tags: llvmorg-3.3.1-rc1 |
|
#
fe68302f |
| 07-Jun-2013 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Thread the 'Invalid' out parameter through SourceManager::getSLocEntry() and callees of SourceManager::getSLocEntryByID().
Also add an 'Invalid' check in SourceManager::computeMacroArgsCache().
llv
Thread the 'Invalid' out parameter through SourceManager::getSLocEntry() and callees of SourceManager::getSLocEntryByID().
Also add an 'Invalid' check in SourceManager::computeMacroArgsCache().
llvm-svn: 183538
show more ...
|
Revision tags: llvmorg-3.3.0, llvmorg-3.3.0-rc3 |
|
#
d6111d3c |
| 25-May-2013 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Make isBeforeInTranslationUnit consistent in the face of failures to get a valid FileID (V2).
llvm-svn: 182698
|
#
5fd822c2 |
| 24-May-2013 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Make isBeforeInTranslationUnit consistent in the face of failures to get a valid FileID.
Suggested by Jordan.
llvm-svn: 182695
|
#
5dca8643 |
| 24-May-2013 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Add some safety checks in a couple of SourceManager functions.
This is to address crash in rdar://13932308
llvm-svn: 182681
|
#
8c398400 |
| 24-May-2013 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Replace Count{Leading,Trailing}Zeros_{32,64} with count{Leading,Trailing}Zeros.
llvm-svn: 182675
|
Revision tags: llvmorg-3.3.0-rc2 |
|
#
065d720c |
| 16-May-2013 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[Lexer] Improve Lexer::getSourceText() when the given range deals with function macro arguments.
This is a modified version of a patch by Manuel Klimek.
llvm-svn: 182055
|
Revision tags: llvmorg-3.3.0-rc1 |
|
#
37613a9c |
| 13-Apr-2013 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Introduce SourceManager::getDecomposedIncludedLoc, that returns the "included/expanded in" decomposed location of the given FileID.
The main benefit is to speed-up SourceManager::isBeforeInTranslati
Introduce SourceManager::getDecomposedIncludedLoc, that returns the "included/expanded in" decomposed location of the given FileID.
The main benefit is to speed-up SourceManager::isBeforeInTranslationUnit which is common to query the included/expanded location of the same FileID multiple times.
llvm-svn: 179435
show more ...
|
#
1ca73445 |
| 01-Mar-2013 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Add one more sanity check in SourceManager::getFileIDLoaded().
llvm-svn: 176333
|
#
7dc4f33c |
| 01-Mar-2013 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
In SourceManager::getFileIDLoaded(), add some sanity checks to make sure we don't enter an infinite loop.
rdar://13120919
llvm-svn: 176331
|
#
08037045 |
| 27-Feb-2013 |
Ted Kremenek <kremenek@apple.com> |
Refine SourceManager's isBeforeInTranslationUnit() cache to have more entries.
isBeforeInTranslationUnit() uses a cache to reduce the expensive work to compute a common ancestor for two FileIDs. Th
Refine SourceManager's isBeforeInTranslationUnit() cache to have more entries.
isBeforeInTranslationUnit() uses a cache to reduce the expensive work to compute a common ancestor for two FileIDs. This work is very expensive, so even caching the latest used FileIDs was a big win. A closer analysis of the cache before, however, shows that the cache access pattern would oscillate between a working set of FileIDs, and thus caching more pairs would be profitable.
This patch adds a side table for extending caching. This side table is bounded in size (experimentally determined in this case from a simple Objective-C project), and when the table gets too large we fall back to the single entry caching before as before.
On Sketch (a small example Objective-C project), this optimization reduces -fsyntax-only time on SKTGraphicView.m by 5%. This is for a project that is already using PCH.
Fixes <rdar://problem/13299847>
llvm-svn: 176142
show more ...
|
#
2999b77f |
| 22-Feb-2013 |
Benjamin Kramer <benny.kra@googlemail.com> |
Replace some typically large vectors with SmallVector.
This may seem counter-intuitive but the POD-like optimization helps when the vectors grow into multimegabyte buffers. SmallVector calls realloc
Replace some typically large vectors with SmallVector.
This may seem counter-intuitive but the POD-like optimization helps when the vectors grow into multimegabyte buffers. SmallVector calls realloc which knows how to twiddle virtual memory bits and avoids large copies.
llvm-svn: 175906
show more ...
|
#
7a30dc53 |
| 21-Feb-2013 |
David Blaikie <dblaikie@gmail.com> |
Use None rather than Optional<T>() where possible.
llvm-svn: 175705
|
#
05785d16 |
| 20-Feb-2013 |
David Blaikie <dblaikie@gmail.com> |
Include llvm::Optional in clang/Basic/LLVM.h
Post-commit CR feedback from Jordan Rose regarding r175594.
llvm-svn: 175679
|
#
b1e71a7d |
| 12-Jan-2013 |
Matt Beaumont-Gay <matthewbg@google.com> |
Fix -Wunused-comparison for comparisons in arguments to function-like macros.
Previously, -Wunused-comparison ignored comparisons in both macro bodies and macro arguments, but we would still emit a
Fix -Wunused-comparison for comparisons in arguments to function-like macros.
Previously, -Wunused-comparison ignored comparisons in both macro bodies and macro arguments, but we would still emit a -Wunused-value warning for either. Now we correctly emit -Wunused-comparison for expressions in macro arguments.
Also, add isMacroBodyExpansion to SourceManager, to go along with isMacroArgExpansion.
llvm-svn: 172279
show more ...
|
Revision tags: llvmorg-3.2.0 |
|
#
f3b839b0 |
| 16-Dec-2012 |
Craig Topper <craig.topper@gmail.com> |
Don't use SourceLineCache in getColumnNumber if LastLineNoResult is past the end of the cache. Fixes PR14570.
llvm-svn: 170281
|
Revision tags: llvmorg-3.2.0-rc3 |
|
#
3a02247d |
| 04-Dec-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Sort all of Clang's files under 'lib', and fix up the broken headers uncovered.
This required manually correcting all of the incorrect main-module headers I could find, and running the new llvm/util
Sort all of Clang's files under 'lib', and fix up the broken headers uncovered.
This required manually correcting all of the incorrect main-module headers I could find, and running the new llvm/utils/sort_includes.py script over the files.
I also manually added quite a few missing headers that were uncovered by shuffling the order or moving headers up to be main-module-headers.
llvm-svn: 169237
show more ...
|