diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-27 22:44:06 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-27 22:44:06 +0000 |
commit | 88a8fc544848278660de7cfa2d39c4762918267c (patch) | |
tree | aefe7ad72fac82a5eb0e450915039db9ffa8d5eb /llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp | |
parent | 825a7681db958ffeae039a2a82f0cbe5f497efac (diff) | |
download | llvm-88a8fc544848278660de7cfa2d39c4762918267c.zip llvm-88a8fc544848278660de7cfa2d39c4762918267c.tar.gz llvm-88a8fc544848278660de7cfa2d39c4762918267c.tar.bz2 |
AsmPrinter: Stop exposing underlying DIEValue list, NFC
Change the `DIE` API to hide the implementation of the list of
`DIEValue`s.
llvm-svn: 238369
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp index a9e9044..b166865 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp @@ -97,13 +97,10 @@ 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<DIEAbbrevData> &AbbrevData = Abbrev.getData(); - // Size the DIE attribute values. - for (unsigned i = 0, N = Values.size(); i < N; ++i) + for (const auto &V : Die.values()) // Size attribute value. - Offset += Values[i].SizeOf(Asm, AbbrevData[i].getForm()); + Offset += V.SizeOf(Asm, V.getForm()); // Get the children. const auto &Children = Die.getChildren(); |