aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-30 04:08:37 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-30 04:08:37 +0000
commit41bb43252b18f9687990b2dd5c53c8270c785a62 (patch)
tree495370f702fa41568544f4736c15c4dd24c5cc23 /llvm/lib/Object/MachOObjectFile.cpp
parent8465c00762751d3145220e29a3a503b2dab41b40 (diff)
downloadllvm-41bb43252b18f9687990b2dd5c53c8270c785a62.zip
llvm-41bb43252b18f9687990b2dd5c53c8270c785a62.tar.gz
llvm-41bb43252b18f9687990b2dd5c53c8270c785a62.tar.bz2
Don't return error_code from a function that doesn't fail.
llvm-svn: 241042
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r--llvm/lib/Object/MachOObjectFile.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index 9763fab..79220f4 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -659,9 +659,8 @@ uint64_t MachOObjectFile::getRelocationType(DataRefImpl Rel) const {
return getAnyRelocationType(RE);
}
-std::error_code
-MachOObjectFile::getRelocationTypeName(DataRefImpl Rel,
- SmallVectorImpl<char> &Result) const {
+void MachOObjectFile::getRelocationTypeName(
+ DataRefImpl Rel, SmallVectorImpl<char> &Result) const {
StringRef res;
uint64_t RType = getRelocationType(Rel);
@@ -767,7 +766,6 @@ MachOObjectFile::getRelocationTypeName(DataRefImpl Rel,
break;
}
Result.append(res.begin(), res.end());
- return std::error_code();
}
uint8_t MachOObjectFile::getRelocationLength(DataRefImpl Rel) const {