aboutsummaryrefslogtreecommitdiffstats
path: root/tools/yaml2obj
diff options
context:
space:
mode:
authorSean Silva <silvas@purdue.edu>2013-06-19 00:11:59 +0000
committerSean Silva <silvas@purdue.edu>2013-06-19 00:11:59 +0000
commit5ba1225fb074f8035668637292d994d4c39757d1 (patch)
tree6e80c771ce271284279776d09b8a5ec22a119dce /tools/yaml2obj
parent70a3dc1bc2b16748a8a79d1d11d2b1603c38c032 (diff)
downloadexternal_llvm-5ba1225fb074f8035668637292d994d4c39757d1.zip
external_llvm-5ba1225fb074f8035668637292d994d4c39757d1.tar.gz
external_llvm-5ba1225fb074f8035668637292d994d4c39757d1.tar.bz2
[yaml2obj][ELF] Support st_info through `Binding` and `Type` YAML keys.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184263 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/yaml2obj')
-rw-r--r--tools/yaml2obj/yaml2elf.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/yaml2obj/yaml2elf.cpp b/tools/yaml2obj/yaml2elf.cpp
index 3ddbe0a..80d21e7 100644
--- a/tools/yaml2obj/yaml2elf.cpp
+++ b/tools/yaml2obj/yaml2elf.cpp
@@ -166,6 +166,7 @@ static void handleSymtabSectionHeader(
zero(Symbol);
if (!Sym.Name.empty())
Symbol.st_name = StrTab.addString(Sym.Name);
+ Symbol.setBindingAndType(Sym.Binding, Sym.Type);
Syms.push_back(Symbol);
}