summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-22 07:29:52 +0000
committerAlp Toker <alp@nuanti.com>2014-01-22 07:29:52 +0000
commit296a4e54995407cf7e3602b29d28ffd001d15e23 (patch)
treed39e4e5fb8f8dfa316fdb3e4da74073fb4f1fedb /lib/CodeGen/CGExprAgg.cpp
parent8a4d3a8337a6c91f2ae6613f67caff9e04d45811 (diff)
downloadclang-296a4e54995407cf7e3602b29d28ffd001d15e23.tar.gz
clang-296a4e54995407cf7e3602b29d28ffd001d15e23.tar.bz2
clang-296a4e54995407cf7e3602b29d28ffd001d15e23.tar.xz
Introduce and use Decl::getAsFunction() to simplify templated function checks
Lift the getFunctionDecl() utility out of the parser into a general Decl::getAsFunction() and use it to simplify other parts of the implementation. Reduce isFunctionOrFunctionTemplate() to a simple type check that works the same was as the other is* functions and move unwrapping of shadowed decls to callers so it doesn't get run twice. Shuffle around canSkipFunctionBody() to reduce virtual dispatch on ASTConsumer. There's no need to query when we already know the body can't be skipped. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
0 files changed, 0 insertions, 0 deletions