[CodeGen] Generate TBAA type descriptors in a more reliable manner
authorIvan A. Kosarev <ikosarev@accesssoftek.com>
Tue, 21 Nov 2017 11:18:06 +0000 (11:18 +0000)
committerIvan A. Kosarev <ikosarev@accesssoftek.com>
Tue, 21 Nov 2017 11:18:06 +0000 (11:18 +0000)
commit5d9d32e82096baa2d15a6fa1b19e33bdf6780792
treed02d66d9b790a264c66cef78dfc6a83004717e25
parenta93dea535f77831b1b96c1456813015501ffff49
[CodeGen] Generate TBAA type descriptors in a more reliable manner

This patch introduces a couple of helper functions that make it
possible to handle the caching logic in a single place.

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

llvm-svn: 318752
clang/lib/CodeGen/CodeGenTBAA.cpp
clang/lib/CodeGen/CodeGenTBAA.h