[llvm] 90c5ab5 - [DwarfCompileUnit] getOrCreateGlobalVariableDIE(): remove outdated comment. NFC
Kristina Bessonova via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 14 01:00:33 PST 2021
Author: Kristina Bessonova
Date: 2021-11-14T10:56:54+02:00
New Revision: 90c5ab54a9dd750c3c9725115c1205b4eba9eeb9
URL: https://github.com/llvm/llvm-project/commit/90c5ab54a9dd750c3c9725115c1205b4eba9eeb9
DIFF: https://github.com/llvm/llvm-project/commit/90c5ab54a9dd750c3c9725115c1205b4eba9eeb9.diff
LOG: [DwarfCompileUnit] getOrCreateGlobalVariableDIE(): remove outdated comment. NFC
Added:
Modified:
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index f51fb041f5599..b1d9c0237ffd7 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -143,8 +143,6 @@ DIE *DwarfCompileUnit::getOrCreateGlobalVariableDIE(
auto *GVContext = GV->getScope();
const DIType *GTy = GV->getType();
- // Construct the context before querying for the existence of the DIE in
- // case such construction creates the DIE.
auto *CB = GVContext ? dyn_cast<DICommonBlock>(GVContext) : nullptr;
DIE *ContextDIE = CB ? getOrCreateCommonBlock(CB, GlobalExprs)
: getOrCreateContextDIE(GVContext);
More information about the llvm-commits
mailing list