Return ErrorOr from getSection.
[oota-llvm.git] / include / llvm / Object / Error.h
index 1b0b56787c5cd34342492903b6c7c28dddd2eb70..aa320bb51a46a8ee162683207cb26b53394e4c8c 100644 (file)
@@ -28,6 +28,7 @@ enum class object_error {
   parse_failed,
   unexpected_eof,
   string_table_non_null_end,
+  invalid_section_index,
   bitcode_section_not_found,
   macho_small_load_command,
   macho_load_segment_too_many_sections,