diff options
| author | Steve Naroff <snaroff@apple.com> | 2008-04-02 14:35:35 +0000 |
|---|---|---|
| committer | Steve Naroff <snaroff@apple.com> | 2008-04-02 14:35:35 +0000 |
| commit | 2fc93f5c432287fc10a48c58debf46c19fcc2024 (patch) | |
| tree | 7721dd4b1dbb40ec009a9736731f6eaea37dafea /clang/lib/Sema/SemaExpr.cpp | |
| parent | d12d21c0008261f5039d2cb62a8dc9098d0b60ef (diff) | |
| download | bcm5719-llvm-2fc93f5c432287fc10a48c58debf46c19fcc2024.tar.gz bcm5719-llvm-2fc93f5c432287fc10a48c58debf46c19fcc2024.zip | |
Two changes to Sema::LookupDecl() interface.
(1) Remove IdLoc (it's never used).
(2) Add a bool to enable/disable lazy builtin creaation (defaults to true).
This enables us to use LookupDecl() in Sema::isTypeName(), which is also part of this commit.
To make this work, I changed isTypeName() to be a non-const member function. I'm not happy with this, however I fiddled with making LookupDecl() and friends const and it got ugly pretty quickly. We can certainly add it back if/when someone has time to fiddle with it. For now, I thought this simplification was more important than retaining the const-ness.
llvm-svn: 49087
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 05926018601..9c36c17e493 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -75,7 +75,7 @@ Sema::ExprResult Sema::ActOnIdentifierExpr(Scope *S, SourceLocation Loc, IdentifierInfo &II, bool HasTrailingLParen) { // Could be enum-constant, value decl, instance variable, etc. - Decl *D = LookupDecl(&II, Decl::IDNS_Ordinary, Loc, S); + Decl *D = LookupDecl(&II, Decl::IDNS_Ordinary, S); // If this reference is in an Objective-C method, then ivar lookup happens as // well. |

