- Nov 19, 2008
-
-
Douglas Gregor authored
llvm-svn: 59675
-
Douglas Gregor authored
being called to be converted to a reference-to-function, pointer-to-function, or reference-to-pointer-to-function. This is done through "surrogate" candidate functions that model the conversions from the object to the function (reference/pointer) and the conversions in the arguments. llvm-svn: 59674
-
Ted Kremenek authored
llvm-svn: 59673
-
Ted Kremenek authored
Use PreprocessorLexer::getFileID() instead of Lexer::getFileLoc(). This is an intermediate step to having getCurrentLexer() return a PreprocessorLexer* instead of a Lexer*. llvm-svn: 59672
-
Ted Kremenek authored
Use PTHLexer::isNextPPTokenLParen() when using the PTHLexer. llvm-svn: 59671
-
Ted Kremenek authored
llvm-svn: 59670
-
Ted Kremenek authored
llvm-svn: 59669
-
Ted Kremenek authored
llvm-svn: 59668
-
Dan Gohman authored
a virtual method of SelectionDAG. llvm-svn: 59667
-
Ted Kremenek authored
- Add variants of IsNonPragmaNonMacroLexer to accept an IncludeMacroStack entry (simplifies some uses). - Use IsNonPragmaNonMacroLexer in Preprocessor::LookupFile. - Add 'FileID' to PreprocessorLexer, and have Preprocessor query this fileid when looking up the FileEntry for a file Performance testing of -Eonly on Cocoa.h shows no performance regression because of this patch. llvm-svn: 59666
-
Dan Gohman authored
dump in terms of it. llvm-svn: 59665
-
-
Douglas Gregor authored
with function call syntax, e.g., Functor f; f(x, y); This is the easy part of handling calls to objects of class type (C++ [over.call.object]). The hard part (coping with conversions from f to function pointer or reference types) will come later. Nobody uses that stuff anyway, right? :) llvm-svn: 59663
-
Oscar Fuentes authored
llvm-svn: 59662
-
Douglas Gregor authored
llvm-svn: 59661
-
Daniel Dunbar authored
llvm-svn: 59660
-
Devang Patel authored
Do not use separate utility to walk all instructions and remove dead dbg intrinsics. Let instcombiner do this job. llvm-svn: 59659
-
Devang Patel authored
llvm-svn: 59658
-
Devang Patel authored
If there are two consecutive llvm.dbg.stoppoint calls then it is likely that the optimizer deleted code in between these two intrinsics. Keep only the last llvm.dbg.stoppoint in this case. llvm-svn: 59657
-
Oscar Fuentes authored
Patch contributed by Jay Foad! llvm-svn: 59656
-
Oscar Fuentes authored
llvm-svn: 59655
-
Fariborz Jahanian authored
objects as __strong when attribute unspecified. llvm-svn: 59654
-
Argyrios Kyrtzidis authored
llvm-svn: 59651
-
Argyrios Kyrtzidis authored
struct A { struct B; }; struct A::B { void m() {} // Assertion failed: getContainingDC(DC) == CurContext && "The next DeclContext should be lexically contained in the current one." }; Introduce DeclContext::getLexicalParent which may be different from DeclContext::getParent when nested-names are involved, e.g: namespace A { struct S; } struct A::S {}; // getParent() == namespace 'A' // getLexicalParent() == translation unit llvm-svn: 59650
-
Scott Michel authored
right thing and promote the store to i8. llvm-svn: 59648
-
Nuno Lopes authored
llvm-svn: 59647
-
Argyrios Kyrtzidis authored
llvm-svn: 59646
-
Fariborz Jahanian authored
llvm-svn: 59645
-
rdar://problem/6351057Stuart Hastings authored
Discourage (allocate last) use of x86_64 R12 and R13 due to their longer instruction encodings. llvm-svn: 59644
-
Douglas Gregor authored
built-in operator candidates. Test overloading of '&' and ','. In C++, a comma expression is an lvalue if its right-hand subexpression is an lvalue. Update Expr::isLvalue accordingly. llvm-svn: 59643
-
Andrew Lenharth authored
llvm-svn: 59642
-
Dan Gohman authored
configured with llvm-gcc. llvm-svn: 59641
-
Dan Gohman authored
problems for example when LLVM is built with --with-extra-options=-m64 and as defaults to x86-32 mode. llvm-svn: 59640
-
rdar://problem/6150376Steve Naroff authored
The core fix in Sema::ActOnClassMessage(). All the other changes have to do with passing down the SourceLocation for the receiver (to properly position the cursor when producing an error diagnostic). llvm-svn: 59639
-
Douglas Gregor authored
post-decrement, including support for generating all of the built-in operator candidates for these operators. C++ and C have different rules for the arguments to the builtin unary '+' and '-'. Implemented both variants in Sema::ActOnUnaryOp. In C++, pre-increment and pre-decrement return lvalues. Update Expr::isLvalue accordingly. llvm-svn: 59638
-
Scott Michel authored
llvm-svn: 59637
-
Argyrios Kyrtzidis authored
With this snippet: void f(a::b); An assert is hit: Assertion failed: CachedTokens[CachedLexPos-1].getLocation() == Tok.getAnnotationEndLoc() && "The annotation should be until the most recent cached token", file ..\..\lib\Lex\PPCaching.cpp, line 98 Introduce Preprocessor::RevertCachedTokens that reverts a specific number of tokens when backtracking is enabled. llvm-svn: 59636
-
Argyrios Kyrtzidis authored
Remove Preprocessor::CacheTokens boolean data member. The same functionality can be provided by using Preprocessor::isBacktrackEnabled(). llvm-svn: 59631
-
Argyrios Kyrtzidis authored
llvm-svn: 59629
-
Sanjiv Gupta authored
llvm-svn: 59623
-