mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-01 13:17:01 +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:
@@ -94,13 +94,13 @@ unsigned DwarfFile::computeSizeAndOffset(DIE &Die, unsigned Offset) {
|
||||
// Start the size with the size of abbreviation code.
|
||||
Offset += getULEB128Size(Die.getAbbrevNumber());
|
||||
|
||||
const SmallVectorImpl<DIEValue> &Values = Die.getValues();
|
||||
const SmallVectorImpl<DIEValue *> &Values = Die.getValues();
|
||||
const SmallVectorImpl<DIEAbbrevData> &AbbrevData = Abbrev.getData();
|
||||
|
||||
// Size the DIE attribute values.
|
||||
for (unsigned i = 0, N = Values.size(); i < N; ++i)
|
||||
// Size attribute value.
|
||||
Offset += Values[i].SizeOf(Asm, AbbrevData[i].getForm());
|
||||
Offset += Values[i]->SizeOf(Asm, AbbrevData[i].getForm());
|
||||
|
||||
// Get the children.
|
||||
const auto &Children = Die.getChildren();
|
||||
|
Reference in New Issue
Block a user