diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-28 18:55:38 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-28 18:55:38 +0000 |
commit | b04fb5ed25d6f1cfcbebc52443c6ed721f59f66c (patch) | |
tree | 258433d021427e3471a06f7df2257f688135473d /llvm/tools | |
parent | c9741603bca0909c959e8ba24c52d8c675653eb5 (diff) | |
download | bcm5719-llvm-b04fb5ed25d6f1cfcbebc52443c6ed721f59f66c.tar.gz bcm5719-llvm-b04fb5ed25d6f1cfcbebc52443c6ed721f59f66c.zip |
AsmPrinter: Rename begin_values() => values_begin(), NFC
llvm-svn: 238456
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/dsymutil/DwarfLinker.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/tools/dsymutil/DwarfLinker.cpp b/llvm/tools/dsymutil/DwarfLinker.cpp index a62dab67f8c..e3e7e82eab6 100644 --- a/llvm/tools/dsymutil/DwarfLinker.cpp +++ b/llvm/tools/dsymutil/DwarfLinker.cpp @@ -69,13 +69,13 @@ struct PatchLocation { PatchLocation() : Die(nullptr), Index(0) {} PatchLocation(DIE &Die, unsigned Index) : Die(&Die), Index(Index) {} PatchLocation(DIE &Die) - : Die(&Die), Index(std::distance(Die.begin_values(), Die.end_values())) {} + : Die(&Die), Index(std::distance(Die.values_begin(), Die.values_end())) {} void set(uint64_t New) const { assert(Die); assert((signed)Index < - std::distance(Die->begin_values(), Die->end_values())); - const auto &Old = Die->begin_values()[Index]; + std::distance(Die->values_begin(), Die->values_end())); + const auto &Old = Die->values_begin()[Index]; assert(Old.getType() == DIEValue::isInteger); Die->setValue(Index, DIEValue(Old.getAttribute(), Old.getForm(), DIEInteger(New))); @@ -84,9 +84,9 @@ struct PatchLocation { uint64_t get() const { assert(Die); assert((signed)Index < - std::distance(Die->begin_values(), Die->end_values())); - assert(Die->begin_values()[Index].getType() == DIEValue::isInteger); - return Die->begin_values()[Index].getDIEInteger().getValue(); + std::distance(Die->values_begin(), Die->values_end())); + assert(Die->values_begin()[Index].getType() == DIEValue::isInteger); + return Die->values_begin()[Index].getDIEInteger().getValue(); } }; @@ -2331,13 +2331,13 @@ void DwarfLinker::patchLineTableForUnit(CompileUnit &Unit, // Update the cloned DW_AT_stmt_list with the correct debug_line offset. if (auto *OutputDIE = Unit.getOutputUnitDIE()) { - auto Stmt = std::find_if(OutputDIE->begin_values(), OutputDIE->end_values(), + auto Stmt = std::find_if(OutputDIE->values_begin(), OutputDIE->values_end(), [](const DIEValue &Value) { return Value.getAttribute() == dwarf::DW_AT_stmt_list; }); - assert(Stmt != OutputDIE->end_values() && + assert(Stmt != OutputDIE->values_end() && "Didn't find DW_AT_stmt_list in cloned DIE!"); - OutputDIE->setValue(Stmt - OutputDIE->begin_values(), + OutputDIE->setValue(Stmt - OutputDIE->values_begin(), DIEValue(Stmt->getAttribute(), Stmt->getForm(), DIEInteger(Streamer->getLineSectionSize()))); } |