diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-08-07 15:25:20 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-08-07 15:25:20 +0000 |
commit | e01f43bcc1d25c29d1b9e0e05930e5c1b27ec6eb (patch) | |
tree | d75f7e94e02483e46641602a54be5dbbfb4273e9 /llvm/lib | |
parent | a5e1453ac3cd622fe0431d2a1f4477a83843139e (diff) | |
download | bcm5719-llvm-e01f43bcc1d25c29d1b9e0e05930e5c1b27ec6eb.tar.gz bcm5719-llvm-e01f43bcc1d25c29d1b9e0e05930e5c1b27ec6eb.zip |
Add dynamic_table iterators back to ELF.h.
In tree they are only used by llvm-readobj, but it is also used by
https://github.com/mono/CppSharp.
While at it, add some missing error checking.
llvm-svn: 244320
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Object/Error.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Object/Error.cpp b/llvm/lib/Object/Error.cpp index 7ca2f12f092..7ecc3a19af9 100644 --- a/llvm/lib/Object/Error.cpp +++ b/llvm/lib/Object/Error.cpp @@ -47,6 +47,8 @@ std::string _object_error_category::message(int EV) const { return "Invalid section index"; case object_error::bitcode_section_not_found: return "Bitcode section not found in object file"; + case object_error::elf_invalid_dynamic_table_size: + return "Invalid dynamic table size"; case object_error::macho_small_load_command: return "Mach-O load command with size < 8 bytes"; case object_error::macho_load_segment_too_many_sections: |