diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-27 19:30:27 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-27 19:30:27 +0000 |
commit | 583bc03829fb39435db56bb4bc8d4049c19a167a (patch) | |
tree | 7e9a688e4267967c4ce286c1b19bad15d3668da3 /llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp | |
parent | 7735b48a8ba8067a09d9935491ba63b52239779b (diff) | |
download | llvm-583bc03829fb39435db56bb4bc8d4049c19a167a.zip llvm-583bc03829fb39435db56bb4bc8d4049c19a167a.tar.gz llvm-583bc03829fb39435db56bb4bc8d4049c19a167a.tar.bz2 |
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.
llvm-svn: 238350
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp index 9951c1d..10b58d4 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp @@ -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(); |