Replace 'ap' with 'up' suffix in variable names. (NFC)
The `ap` suffix is a remnant of lldb's former use of auto pointers, before they got deprecated. Although all their uses were replaced by unique pointers, some variables still carried the suffix. In r353795 I removed another auto_ptr remnant, namely redundant calls to ::get for unique_pointers. Jim justly noted that this is a good opportunity to clean up the variable names as well. I went over all the changes to ensure my find-and-replace didn't have any undesired side-effects. I hope I didn't miss any, but if you end up at this commit doing a git blame on a weirdly named variable, please know that the change was unintentional. llvm-svn: 353912
This commit is contained in:
@@ -123,9 +123,9 @@ Symtab *ObjectFileBreakpad::GetSymtab() {
|
||||
}
|
||||
|
||||
void ObjectFileBreakpad::CreateSections(SectionList &unified_section_list) {
|
||||
if (m_sections_ap)
|
||||
if (m_sections_up)
|
||||
return;
|
||||
m_sections_ap = llvm::make_unique<SectionList>();
|
||||
m_sections_up = llvm::make_unique<SectionList>();
|
||||
|
||||
llvm::Optional<Record::Kind> current_section;
|
||||
offset_t section_start;
|
||||
@@ -141,7 +141,7 @@ void ObjectFileBreakpad::CreateSections(SectionList &unified_section_list) {
|
||||
ConstString(toString(*current_section)), eSectionTypeOther,
|
||||
/*file_vm_addr*/ 0, /*vm_size*/ 0, section_start,
|
||||
end_offset - section_start, /*log2align*/ 0, /*flags*/ 0);
|
||||
m_sections_ap->AddSection(section_sp);
|
||||
m_sections_up->AddSection(section_sp);
|
||||
unified_section_list.AddSection(section_sp);
|
||||
};
|
||||
while (!text.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user