- Dec 26, 2008
-
-
Anton Korobeynikov authored
Patch by Ilya Okonsky llvm-svn: 61437
-
Anders Carlsson authored
llvm-svn: 61435
-
Anders Carlsson authored
llvm-svn: 61434
-
Anders Carlsson authored
llvm-svn: 61433
-
Anders Carlsson authored
llvm-svn: 61432
-
- Dec 25, 2008
-
-
Steve Naroff authored
llvm-svn: 61431
-
Steve Naroff authored
Change preprocessor implementation of _cdecl to reference __cdecl. llvm-svn: 61430
-
Zhongxing Xu authored
llvm-svn: 61429
-
Anders Carlsson authored
llvm-svn: 61428
-
- Dec 24, 2008
-
-
Steve Naroff authored
Remove previous __declspec macro that would effectively erase the construct prior to parsing. llvm-svn: 61422
-
Sebastian Redl authored
llvm-svn: 61421
-
Ted Kremenek authored
llvm-svn: 61419
-
Zhongxing Xu authored
llvm-svn: 61418
-
Zhongxing Xu authored
llvm-svn: 61417
-
Zhongxing Xu authored
llvm-svn: 61416
-
Douglas Gregor authored
Keep track of template arguments when we parse them. Right now, we don't actually do anything with the template arguments, but they'll be used to create template declarations llvm-svn: 61413
-
Anders Carlsson authored
llvm-svn: 61412
-
Anders Carlsson authored
llvm-svn: 61411
-
Anders Carlsson authored
llvm-svn: 61410
-
Ted Kremenek authored
llvm-svn: 61409
-
Douglas Gregor authored
semantics and improve our handling of default arguments. Specifically, we follow this order: - As soon as the see the '}' in the class definition, the class is complete and we add any implicit declarations (default constructor, copy constructor, etc.) to the class. - If there are any default function arguments, parse them - If there were any inline member function definitions, parse them As part of this change, we now keep track of the the fact that we've seen unparsed default function arguments within the AST. See the new ParmVarDecl::hasUnparsedDefaultArg member. This allows us to properly cope with calls inside default function arguments to other functions where we're making use of the default arguments. Made some C++ error messages regarding failed initializations more specific. llvm-svn: 61406
-
- Dec 23, 2008
-
-
Anton Korobeynikov authored
Patch by Ilya Okonsky! llvm-svn: 61394
-
Douglas Gregor authored
llvm-svn: 61393
-
Douglas Gregor authored
sure to look at all of the results returned by name lookup. Fixes <rdar://problem/6465262> llvm-svn: 61388
-
Fariborz Jahanian authored
We now pass all gcc's encoding compatibility tests. llvm-svn: 61387
-
Douglas Gregor authored
attached to an identifier. Instead, all overloaded functions will be pushed into scope, and we'll synthesize an OverloadedFunctionDecl on the fly when we need it. llvm-svn: 61386
-
Fariborz Jahanian authored
gcc compatibilty in all aspects of encoding now. llvm-svn: 61383
-
Ted Kremenek authored
llvm-svn: 61382
-
Ted Kremenek authored
PTH: Remove some methods and simplify some conditions in PTHLexer::Lex(). No big functionality change. llvm-svn: 61381
-
Ted Kremenek authored
- This reduces the PTH size for Cocoa.h by 7%. - The increases PTH -Eonly speed for Cocoa.h by 0.8%. llvm-svn: 61377
-
Ted Kremenek authored
llvm-svn: 61375
-
Ted Kremenek authored
- Encode the token length with 2 bytes instead of 4. - This reduces the size of the .pth file for Cocoa.h by 12%. - This speeds up PTH time (-Eonly) on Cocoa.h by 1.6%. llvm-svn: 61364
-
Ted Kremenek authored
- In PTHLexer::Lex read all of the token data from PTH file before constructing the token. The idea is to enhance locality. - Do not use Read8/Read32 in PTHLexer::Lex. Inline these operations manually. - Change PTHManager::ReadIdentifierInfo() to PTHManager::GetIdentifierInfo(). They are functionally the same except that PTHLexer::Lex() reads the persistent id. These changes result in a 3.3% speedup for PTH on Cocoa.h (-Eonly). llvm-svn: 61363
-
Ted Kremenek authored
- Embed 'eom' tokens in PTH file. - Use embedded 'eom' tokens to not lazily generate them in the PTHLexer. This means that PTHLexer can always advance to the next token after reading a token (instead of buffering tokens using a copy). - Moved logic of 'ReadToken' into Lex. GetToken & ReadToken no longer exist. - These changes result in a 3.3% speedup (-Eonly) on Cocoa.h. - The code is a little gross. Many cleanups are possible and should be done. llvm-svn: 61360
-
Douglas Gregor authored
llvm-svn: 61359
-
Douglas Gregor authored
DeclContext. Instead, just keep the list of currently-active declarations and only build the OverloadedFunctionDecl when we absolutely need it. This is a half-step toward eliminating the need to explicitly build OverloadedFunctionDecls that store sets of overloaded functions. This was suggested by Argiris a while back, and it's a good thing for several reasons: first, it eliminates the messy logic that currently tries to keep the OverloadedFunctionDecl in sync with the declarations that are being added. Second, it will (eventually) eliminate the need to allocate memory for overload sets, which could help performance. Finally, it helps set us up for when name lookup can return multiple (possibly ambiguous) results, as can happen with lookup of class members in C++. Next steps: make the IdentifierResolver store overloads as separate entries in its list rather than replacing them with an OverloadedFunctionDecl now, then see how far we can go toward eliminating OverloadedFunctionDecl entirely. llvm-svn: 61357
-
Fariborz Jahanian authored
outer-most const of pointer types. llvm-svn: 61355
-
- Dec 22, 2008
-
-
Sebastian Redl authored
llvm-svn: 61346
-
Douglas Gregor authored
Support conversion from a null pointer constant o any Objective-C object pointer type. Fixes rdar://problem/6463298 llvm-svn: 61340
-
Fariborz Jahanian authored
instance methods by building print-class-info.m, whose output is now identical to what gcc puts out. llvm-svn: 61339
-