- Dec 11, 2008
-
-
Douglas Gregor authored
and separates lexical name lookup from qualified name lookup. In particular: * Make DeclContext the central data structure for storing and looking up declarations within existing declarations, e.g., members of structs/unions/classes, enumerators in C++0x enums, members of C++ namespaces, and (later) members of Objective-C interfaces/implementations. DeclContext uses a lazily-constructed data structure optimized for fast lookup (array for small contexts, hash table for larger contexts). * Implement C++ qualified name lookup in terms of lookup into DeclContext. * Implement C++ unqualified name lookup in terms of qualified+unqualified name lookup (since unqualified lookup is not purely lexical in C++!) * Limit the use of the chains of declarations stored in IdentifierInfo to those names declared lexically. * Eliminate CXXFieldDecl, collapsing its behavior into FieldDecl. (FieldDecl is now a ScopedDecl). * Make RecordDecl into a DeclContext and eliminates its Members/NumMembers fields (since one can just iterate through the DeclContext to get the fields). llvm-svn: 60878
-
Torok Edwin authored
llvm-svn: 60875
-
Mikhail Glushenkov authored
This stuff is not used outside Base.td, and with the conversion of the compilation graph to string-based format became much less (if at all) useful. llvm-svn: 60873
-
Torok Edwin authored
llvm-svn: 60872
-
Mikhail Glushenkov authored
Prevents conflicts between plugins. llvm-svn: 60871
-
Zhongxing Xu authored
llvm-svn: 60870
-
Mon P Wang authored
llvm-svn: 60869
-
Zhongxing Xu authored
to them. llvm-svn: 60868
-
Bill Wendling authored
llvm-svn: 60867
-
Mon P Wang authored
llvm-svn: 60866
-
Mon P Wang authored
vec_extract-sse4.ll. llvm-svn: 60865
-
Ted Kremenek authored
llvm-svn: 60864
-
Anders Carlsson authored
llvm-svn: 60863
-
Anders Carlsson authored
Make sure to promote expressions of the form (floating point + complex integer) correctly, to (complex floating point + complex floating point) llvm-svn: 60862
-
Bill Wendling authored
llvm-svn: 60861
-
Ted Kremenek authored
- Added virtual method 'getSourceLocation()' (no arguments) that gets the location of the next "observable" location (e.g., next character, next token). PPLexerChange.cpp: - Implemented FIXME by using PreprocessorLexer::getSourceLocation() to get the location in the file we are returning to after lexing a #included file. This appears to be slightly faster than having the branch (i.e., 'if(CurLexer)'). It's also not a really hot part of the Preprocessor. llvm-svn: 60860
-
Misha Brukman authored
llvm-svn: 60859
-
Douglas Gregor authored
"else" clause, e.g., if (int X = foo()) { } else { if (X) { // warning: X is always zero in this context } } Fixes rdar://6425550 and lets me think about something other than DeclContext. llvm-svn: 60858
-
- Dec 10, 2008
-
-
Bill Wendling authored
them. The DAG combiner expects that nodes that are transformed have one value result. llvm-svn: 60857
-
rdar://problem/6424347Steve Naroff authored
The "real" fix for <rdar://problem/6424347> clang on xcode: Assertion failed: (0 && "unexpected type"), function mergeTypes, Commit r60845 was premature. llvm-svn: 60852
-
Evan Cheng authored
llvm-svn: 60851
-
Evan Cheng authored
llvm-svn: 60850
-
Douglas Gregor authored
llvm-svn: 60849
-
Douglas Gregor authored
llvm-svn: 60848
-
rdar://problem/6424347Steve Naroff authored
Fix <rdar://problem/6424347> clang on xcode: Assertion failed: (0 && "unexpected type"), function mergeTypes, llvm-svn: 60845
-
Bill Wendling authored
Only perform SETO/SETC to JO/JC conversion if extractvalue is coming from an arithmetic with overflow instruction. llvm-svn: 60844
-
Ted Kremenek authored
Declare PerIDCache as IdentifierInfo** instead of void*. This is just cleaner. No performance change. llvm-svn: 60843
-
-
Nuno Lopes authored
llvm-svn: 60841
-
Nuno Lopes authored
llvm-svn: 60840
-
rdar://problem/6429113Steve Naroff authored
Fix regression caused by fixing <rdar://problem/6429113> clang ObjC rewriter: crash rewriting file with Blocks and properties llvm-svn: 60839
-
Duncan Sands authored
llvm-svn: 60838
-
Duncan Sands authored
for promoted integer types, eg: i16 on ppc-32, or i24 on any platform. Complete support for arbitrary precision integers would require handling expanded integer types, eg: i128, but I couldn't be bothered. llvm-svn: 60834
-
Duncan Sands authored
llvm-svn: 60833
-
Duncan Sands authored
causing a bunch of failures when running "make ENABLE_EXPENSIVE_CHECKS=1 check". llvm-svn: 60832
-
Mon P Wang authored
llvm-svn: 60831
-
Douglas Gregor authored
Use a scoped object to manage entry/exit from a parser scope rather than explicitly calling EnterScope/ExitScope llvm-svn: 60830
-
Mon P Wang authored
bit convert that changes the number of elements of a shuffle. llvm-svn: 60829
-
Evan Cheng authored
Fix MachineCodeEmitter to use uintptr_t instead of intptr_t. This avoids some overflow issues. Patch by Thomas Jablin. llvm-svn: 60828
-
Anders Carlsson authored
llvm-svn: 60827
-