diff options
author | eddyz87 <eddyz87@gmail.com> | 2024-06-20 21:28:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 21:28:02 +0300 |
commit | 01ce74fe14fb98af42a3f2f7c8c6b04487761cf1 (patch) | |
tree | 6d014ba4167cdd60329f33ed77f50fe90d63c330 /llvm/lib/CodeGen | |
parent | 88dae3d5d0230747f3cbabdde9ac5ae9e5dc3f8d (diff) | |
download | llvm-01ce74fe14fb98af42a3f2f7c8c6b04487761cf1.zip llvm-01ce74fe14fb98af42a3f2f7c8c6b04487761cf1.tar.gz llvm-01ce74fe14fb98af42a3f2f7c8c6b04487761cf1.tar.bz2 |
Revert "[DebugInfo][BPF] Add 'annotations' field for DIBasicType & DI… (#96172)
…SubroutineType (#91422)"
This reverts commit 3ca17443ef4af21bdb1f3b4fbcfff672cbc6176c.
As reported in [1,2] the commit above causes CI failure for powerpc-aix
target.
There is also a performance regression reported in [3]. Reverting to
comply with the developer policy.
[1]
https://github.com/llvm/llvm-project/pull/91422#issuecomment-2179425473
[2] https://lab.llvm.org/buildbot/#/builders/64/builds/62
[3]
https://github.com/llvm/llvm-project/pull/91422#issuecomment-2175631443
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index 08be3a5..6c04fa1 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -712,9 +712,7 @@ void DwarfUnit::constructTypeDIE(DIE &Buffer, const DIBasicType *BTy) { if (!Name.empty()) addString(Buffer, dwarf::DW_AT_name, Name); - addAnnotation(Buffer, BTy->getAnnotations()); - - // An unspecified type only has a name attribute & annotations. + // An unspecified type only has a name attribute. if (BTy->getTag() == dwarf::DW_TAG_unspecified_type) return; @@ -883,8 +881,6 @@ void DwarfUnit::constructTypeDIE(DIE &Buffer, const DISubroutineType *CTy) { if (CTy->isRValueReference()) addFlag(Buffer, dwarf::DW_AT_rvalue_reference); - - addAnnotation(Buffer, CTy->getAnnotations()); } void DwarfUnit::addAnnotation(DIE &Buffer, DINodeArray Annotations) { |