summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-07 06:22:56 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-07 06:22:56 +0000
commitcf1421650953d47ae5089198c0fdc3f3263fa300 (patch)
treef34c6179794cc5d613d8f27e6877babc0c4047bd /clang/lib/CodeGen/CodeGenModule.cpp
parenta5a3ff586f1be7b9edc51ce4ee0ba03c9be300da (diff)
downloadbcm5719-llvm-cf1421650953d47ae5089198c0fdc3f3263fa300.tar.gz
bcm5719-llvm-cf1421650953d47ae5089198c0fdc3f3263fa300.zip
Store inheritance paths after CastExprs instead of inside them.
This takes some trickery since CastExpr has subclasses (and indeed, is abstract). Also, smoosh the CastKind into the bitfield from Expr. Drops two words of storage from Expr in the common case of expressions which don't need inheritance paths. Avoids a separate allocation and another word of overhead in cases needing inheritance paths. Also has the advantage of not leaking memory, since destructors for AST nodes are never run. llvm-svn: 110507
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud