mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Revert "AsmPrinter: Change DIEValue to be stored by value"
This reverts commit r238349, since it caused some errors on bots: - std::is_trivially_copyable isn't available until GCC 5.0. - It was complaining about strict aliasing with my use of ArrayCharUnion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238350 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1340,8 +1340,9 @@ static dwarf::PubIndexEntryDescriptor computeIndexValue(DwarfUnit *CU,
|
||||
|
||||
// We could have a specification DIE that has our most of our knowledge,
|
||||
// look for that now.
|
||||
if (DIEValue SpecVal = Die->findAttribute(dwarf::DW_AT_specification)) {
|
||||
DIE &SpecDIE = SpecVal.getDIEEntry().getEntry();
|
||||
DIEValue *SpecVal = Die->findAttribute(dwarf::DW_AT_specification);
|
||||
if (SpecVal) {
|
||||
DIE &SpecDIE = cast<DIEEntry>(SpecVal)->getEntry();
|
||||
if (SpecDIE.findAttribute(dwarf::DW_AT_external))
|
||||
Linkage = dwarf::GIEL_EXTERNAL;
|
||||
} else if (Die->findAttribute(dwarf::DW_AT_external))
|
||||
|
Reference in New Issue
Block a user