summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2014-11-05 20:47:35 +0000
committerSimon Atanasyan <simon@atanasyan.com>2014-11-05 20:47:35 +0000
commit68a79a790c56ccdf6a9819d4a44f53ca8898a7bd (patch)
treeaff1602d27879712e89b0271c4fac288413a056c /llvm/tools
parentdd43a5c41f27c86075e2c426bd95d65f7ceedaab (diff)
downloadbcm5719-llvm-68a79a790c56ccdf6a9819d4a44f53ca8898a7bd.tar.gz
bcm5719-llvm-68a79a790c56ccdf6a9819d4a44f53ca8898a7bd.zip
Add accessor to get 'visibility' part of st_other field
This new `getVisibility()` function will also be used in the LLD code. llvm-svn: 221392
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/obj2yaml/elf2yaml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/obj2yaml/elf2yaml.cpp b/llvm/tools/obj2yaml/elf2yaml.cpp
index 8b53ee770a6..bff28496db1 100644
--- a/llvm/tools/obj2yaml/elf2yaml.cpp
+++ b/llvm/tools/obj2yaml/elf2yaml.cpp
@@ -133,7 +133,7 @@ std::error_code ELFDumper<ELFT>::dumpSymbol(Elf_Sym_Iter Sym,
S.Type = Sym->getType();
S.Value = Sym->st_value;
S.Size = Sym->st_size;
- S.Visibility = Sym->st_other & 0x3;
+ S.Visibility = Sym->getVisibility();
ErrorOr<StringRef> NameOrErr = Obj.getSymbolName(Sym);
if (std::error_code EC = NameOrErr.getError())
OpenPOWER on IntegriCloud