diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2023-06-14 14:16:16 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2023-06-14 14:16:16 -0700 |
commit | 04c0161c027676119fdc617f5b883dbda97c8549 (patch) | |
tree | 105d274b6c84ee002bda47c980cecad8e1c66e0a /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 7a2fdc685f609730af29e5e969843e9eb71a184c (diff) | |
download | llvm-04c0161c027676119fdc617f5b883dbda97c8549.zip llvm-04c0161c027676119fdc617f5b883dbda97c8549.tar.gz llvm-04c0161c027676119fdc617f5b883dbda97c8549.tar.bz2 |
Revert "[DebugInfo] Always emit `.debug_names` with DWARF 5 for Apple platforms"
This reverts commit e0d57295bf6a3c04f2901d9c70f529d570f48b65 because the
accel-tables-apple.ll test is failing on a few buildbots.
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 2fd2227..edef27b 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -637,21 +637,17 @@ void CGDebugInfo::CreateCompileUnit() { SDK = *It; } - llvm::DICompileUnit::DebugNameTableKind NameTableKind = - static_cast<llvm::DICompileUnit::DebugNameTableKind>( - CGOpts.DebugNameTable); - if (CGM.getTarget().getTriple().isNVPTX()) - NameTableKind = llvm::DICompileUnit::DebugNameTableKind::None; - else if (CGM.getTarget().getTriple().getVendor() == llvm::Triple::Apple) - NameTableKind = llvm::DICompileUnit::DebugNameTableKind::Apple; - // Create new compile unit. TheCU = DBuilder.createCompileUnit( LangTag, CUFile, CGOpts.EmitVersionIdentMetadata ? Producer : "", LO.Optimize || CGOpts.PrepareForLTO || CGOpts.PrepareForThinLTO, CGOpts.DwarfDebugFlags, RuntimeVers, CGOpts.SplitDwarfFile, EmissionKind, DwoId, CGOpts.SplitDwarfInlining, CGOpts.DebugInfoForProfiling, - NameTableKind, CGOpts.DebugRangesBaseAddress, remapDIPath(Sysroot), SDK); + CGM.getTarget().getTriple().isNVPTX() + ? llvm::DICompileUnit::DebugNameTableKind::None + : static_cast<llvm::DICompileUnit::DebugNameTableKind>( + CGOpts.DebugNameTable), + CGOpts.DebugRangesBaseAddress, remapDIPath(Sysroot), SDK); } llvm::DIType *CGDebugInfo::CreateType(const BuiltinType *BT) { |