X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FObject%2FError.h;h=90c2bd74b43c5be7c420a5301bc946603b957e2b;hb=08f70b58cb46e83ee357c3bd6274eda9e9e8060d;hp=15824f8e11649a935a175552e10fd1d0dc0ceb3f;hpb=7acd886ecfa0adc8a14476eafe8cf1fa981cfe18;p=oota-llvm.git diff --git a/include/llvm/Object/Error.h b/include/llvm/Object/Error.h index 15824f8e116..90c2bd74b43 100644 --- a/include/llvm/Object/Error.h +++ b/include/llvm/Object/Error.h @@ -14,23 +14,24 @@ #ifndef LLVM_OBJECT_ERROR_H #define LLVM_OBJECT_ERROR_H -#include "llvm/Support/system_error.h" +#include namespace llvm { namespace object { -const error_category &object_category(); +const std::error_category &object_category(); enum class object_error { success = 0, arch_not_found, invalid_file_type, parse_failed, - unexpected_eof + unexpected_eof, + bitcode_section_not_found, }; -inline error_code make_error_code(object_error e) { - return error_code(static_cast(e), object_category()); +inline std::error_code make_error_code(object_error e) { + return std::error_code(static_cast(e), object_category()); } } // end namespace object.