diff options
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/ObjectYAML/DWARFYAML.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/ObjectYAML/ELFEmitter.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/ObjectYAML/DWARFYAML.cpp b/llvm/lib/ObjectYAML/DWARFYAML.cpp index 186ec8ac..e5c77bc 100644 --- a/llvm/lib/ObjectYAML/DWARFYAML.cpp +++ b/llvm/lib/ObjectYAML/DWARFYAML.cpp @@ -22,7 +22,7 @@ bool DWARFYAML::Data::isEmpty() const { !GNUPubTypes && CompileUnits.empty() && DebugLines.empty(); } -SetVector<StringRef> DWARFYAML::Data::getUsedSectionNames() const { +SetVector<StringRef> DWARFYAML::Data::getNonEmptySectionNames() const { SetVector<StringRef> SecNames; if (!DebugStrings.empty()) SecNames.insert("debug_str"); diff --git a/llvm/lib/ObjectYAML/ELFEmitter.cpp b/llvm/lib/ObjectYAML/ELFEmitter.cpp index fc80839..65b0305 100644 --- a/llvm/lib/ObjectYAML/ELFEmitter.cpp +++ b/llvm/lib/ObjectYAML/ELFEmitter.cpp @@ -355,7 +355,7 @@ ELFState<ELFT>::ELFState(ELFYAML::Object &D, yaml::ErrorHandler EH) if (Doc.Symbols) ImplicitSections.push_back(".symtab"); if (Doc.DWARF) - for (StringRef DebugSecName : Doc.DWARF->getUsedSectionNames()) { + for (StringRef DebugSecName : Doc.DWARF->getNonEmptySectionNames()) { std::string SecName = ("." + DebugSecName).str(); ImplicitSections.push_back(StringRef(SecName).copy(StringAlloc)); } @@ -931,7 +931,7 @@ void ELFState<ELFT>::initStrtabSectionHeader(Elf_Shdr &SHeader, StringRef Name, } static bool shouldEmitDWARF(DWARFYAML::Data &DWARF, StringRef Name) { - SetVector<StringRef> DebugSecNames = DWARF.getUsedSectionNames(); + SetVector<StringRef> DebugSecNames = DWARF.getNonEmptySectionNames(); return Name.consume_front(".") && DebugSecNames.count(Name); } |