[AST] Squeeze some bits in LinkageComputer::QueryType
authorBruno Ricci <riccibrun@gmail.com>
Tue, 25 Sep 2018 13:43:25 +0000 (13:43 +0000)
committerBruno Ricci <riccibrun@gmail.com>
Tue, 25 Sep 2018 13:43:25 +0000 (13:43 +0000)
commitcf86ce0a7a954dc939711da585ceb6321e1b666b
treefaee71b4da42c03493cc2a0b150b837de9fac813
parent9bc3bfffb483e24cb665a6c65f846a81e4caa31a
[AST] Squeeze some bits in LinkageComputer::QueryType

Replace the pair std::pair<const NamedDecl *, unsigned> where the
unsigned represents an LVComputationKind by a PointerIntPair.
This saves a pointer per entry in the map LinkageComputer::CachedLinkageInfo.

Differential Revision: https://reviews.llvm.org/D52268

Reviewed by: rjmccall, george.burgess.iv, erichkeane

llvm-svn: 342973
clang/lib/AST/Linkage.h