summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2017-09-13 03:04:50 +0000
committerPetr Hosek <phosek@chromium.org>2017-09-13 03:04:50 +0000
commitc113577d1599c79019eed054676ced9c41f2e7ca (patch)
tree9caa60cbf79ce74e13f734401ab63aa65a704802 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parenta2aa64760d79d32c35f60632d266f61e5a00ca7d (diff)
[llvm-objcopy] Add e_machine validity check for reserved section indexes
As discussed on llvm-commits it was decided it would be best to check e_machine before declaring that a reserved section index is valid. The only special e_machine value that matters here is EM_HEXAGON. This change adds a special check for EM_HEXAGON. Patch by Jake Ehrlich Differential Revision: https://reviews.llvm.org/D37767 llvm-svn: 313114
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions