[DwarfCompileUnit] getOrCreateCommonBlock(): check for existing entity first. NFCI
authorKristina Bessonova <kbessonova@accesssoftek.com>
Tue, 2 Nov 2021 18:37:48 +0000 (20:37 +0200)
committerKristina Bessonova <kbessonova@accesssoftek.com>
Sun, 14 Nov 2021 08:58:24 +0000 (10:58 +0200)
commit5b4bfd8c2415cb38983a56007bb424e063778460
tree5ccda8fcd2d24dde04a19dcad6f84e868e8a3070
parent90c5ab54a9dd750c3c9725115c1205b4eba9eeb9
[DwarfCompileUnit] getOrCreateCommonBlock(): check for existing entity first. NFCI

For global variables and common blocks there is no way to create entities
through getOrCreateContextDIE(), so no need to obtain the context first.

Differential Revision: https://reviews.llvm.org/D113651
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp