From 34d17fb54d56b57caf77734cb7428d0b4fc19ae6 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 21 Jul 2015 16:42:01 +0000 Subject: [PATCH] Remove always false parameter. llvm-svn: 242802 --- llvm/tools/obj2yaml/elf2yaml.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/llvm/tools/obj2yaml/elf2yaml.cpp b/llvm/tools/obj2yaml/elf2yaml.cpp index 5e70448..05efdb6c 100644 --- a/llvm/tools/obj2yaml/elf2yaml.cpp +++ b/llvm/tools/obj2yaml/elf2yaml.cpp @@ -27,8 +27,7 @@ class ELFDumper { const object::ELFFile &Obj; - std::error_code dumpSymbol(const Elf_Sym *Sym, bool IsDynamic, - ELFYAML::Symbol &S); + std::error_code dumpSymbol(const Elf_Sym *Sym, ELFYAML::Symbol &S); std::error_code dumpCommonSection(const Elf_Shdr *Shdr, ELFYAML::Section &S); std::error_code dumpCommonRelocationSection(const Elf_Shdr *Shdr, ELFYAML::RelocationSection &S); @@ -130,7 +129,7 @@ ErrorOr ELFDumper::dump() { } ELFYAML::Symbol S; - if (std::error_code EC = ELFDumper::dumpSymbol(&Sym, false, S)) + if (std::error_code EC = ELFDumper::dumpSymbol(&Sym, S)) return EC; switch (Sym.getBinding()) @@ -153,14 +152,14 @@ ErrorOr ELFDumper::dump() { } template -std::error_code ELFDumper::dumpSymbol(const Elf_Sym *Sym, bool IsDynamic, +std::error_code ELFDumper::dumpSymbol(const Elf_Sym *Sym, ELFYAML::Symbol &S) { S.Type = Sym->getType(); S.Value = Sym->st_value; S.Size = Sym->st_size; S.Other = Sym->st_other; - ErrorOr NameOrErr = Obj.getSymbolName(Sym, IsDynamic); + ErrorOr NameOrErr = Obj.getStaticSymbolName(Sym); if (std::error_code EC = NameOrErr.getError()) return EC; S.Name = NameOrErr.get(); -- 2.7.4