summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/Error.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2016-11-03 08:40:55 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2016-11-03 08:40:55 +0000
commite1924f06d11935ff27546345108288763614f08a (patch)
tree9a14fac9ef9bf167706ffbba5ee63294c878b2ec /llvm/lib/Object/Error.cpp
parent0f80cc84f0963d22b79bcc8fbfdd0995330ae799 (diff)
downloadbcm5719-llvm-e1924f06d11935ff27546345108288763614f08a.tar.gz
bcm5719-llvm-e1924f06d11935ff27546345108288763614f08a.zip
[Object/ELF] - Make getSymbol() return Error.
That is consistent with other methods around and helps to handle error on a caller side. Differential revision: https://reviews.llvm.org/D26247 llvm-svn: 285886
Diffstat (limited to 'llvm/lib/Object/Error.cpp')
-rw-r--r--llvm/lib/Object/Error.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Object/Error.cpp b/llvm/lib/Object/Error.cpp
index c1dfe673b61..578da22c044 100644
--- a/llvm/lib/Object/Error.cpp
+++ b/llvm/lib/Object/Error.cpp
@@ -50,6 +50,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::invalid_symbol_index:
+ return "Invalid symbol index";
}
llvm_unreachable("An enumerator of object_error does not have a message "
"defined.");
OpenPOWER on IntegriCloud