summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ObjectYAML
diff options
context:
space:
mode:
authorGeorgii Rymar <grimar@accesssoftek.com>2019-12-20 17:02:43 +0300
committerGeorgii Rymar <grimar@accesssoftek.com>2019-12-23 13:29:52 +0300
commitf027e1a68dacfb692b4f3e30abfda529d020d472 (patch)
tree5e6a3325773a7d591a337732665ad97c16319b1d /llvm/lib/ObjectYAML
parent1f985775566dbb7f7b05b923445c50a0e65daece (diff)
downloadbcm5719-llvm-f027e1a68dacfb692b4f3e30abfda529d020d472.tar.gz
bcm5719-llvm-f027e1a68dacfb692b4f3e30abfda529d020d472.zip
[yaml2obj] - Allow using an arbitrary value for OSABI.
There was no way to set an unsupported or unknown OS ABI. With this patch it is possible to use any numeric value. Differential revision: https://reviews.llvm.org/D71765
Diffstat (limited to 'llvm/lib/ObjectYAML')
-rw-r--r--llvm/lib/ObjectYAML/ELFYAML.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/ObjectYAML/ELFYAML.cpp b/llvm/lib/ObjectYAML/ELFYAML.cpp
index 206ae533ffc..21ae85022c2 100644
--- a/llvm/lib/ObjectYAML/ELFYAML.cpp
+++ b/llvm/lib/ObjectYAML/ELFYAML.cpp
@@ -275,6 +275,7 @@ void ScalarEnumerationTraits<ELFYAML::ELF_ELFOSABI>::enumeration(
ECase(ELFOSABI_C6000_LINUX);
ECase(ELFOSABI_STANDALONE);
#undef ECase
+ IO.enumFallback<Hex8>(Value);
}
void ScalarBitSetTraits<ELFYAML::ELF_EF>::bitset(IO &IO,
OpenPOWER on IntegriCloud