aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-05-12 16:23:53 +0000
committerAdrian Prantl <aprantl@apple.com>2017-05-12 16:23:53 +0000
commitddb8e06a8e5cf4964d1f87e51ba5541235dd6a48 (patch)
treeb02926810f451272fa4d206e117771dcd9482c17 /llvm/lib/CodeGen/CodeGen.cpp
parenteb96e44aeae551fc6003f1c03b374ca5e1f69efe (diff)
downloadllvm-ddb8e06a8e5cf4964d1f87e51ba5541235dd6a48.zip
llvm-ddb8e06a8e5cf4964d1f87e51ba5541235dd6a48.tar.gz
llvm-ddb8e06a8e5cf4964d1f87e51ba5541235dd6a48.tar.bz2
Simplify DINamespace caching in CGDebugInfo
This addresses review feedback from r302840. By not canonicalizing namespace decls and using lexical decl context instead of lookuing up the semantic decl context we can take advantage of the fact that DINamespaces a reuniqued. This way non-module debug info is unchanged and module debug info still gets distinct namespace declarations when they ocur in different modules. Thanks to Richard Smith for pointing this out! llvm-svn: 302915
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions