commit | fc2ca56874e1c8186ac30c0c3af13dc5e806cf74 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Wed Apr 07 20:29:57 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Wed Apr 07 20:29:57 2010 +0000 |
tree | b93fda17aafc4405faf414b943bd33d2cc82a98f | |
parent | b205ac9fcd22b87b41697172d1983c5ae9dabaaf [diff] |
Return early from Sema::MarkDeclarationReferenced when we know there isn't any extra work to perform. Also, don't check for unused parameters when the warnings will be suppressed anyway. Improves performance of -fsyntax-only on 403.gcc's combine.c by ~2.5%. <rdar://problem/7836787> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100686 91177308-0d34-0410-b5e6-96231b3b80d8