summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-30 20:32:26 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-30 20:32:26 +0000
commit10fcac7b0768dfb1d9fb3030f2bb664ad8e4e65b (patch)
tree061af9263ce956b767a139713c0d8ab2862b06a2 /llvm/lib/Object/COFFObjectFile.cpp
parent391e53812a5ec4ad8ef8cc4b9a9b81b1a7caf762 (diff)
downloadbcm5719-llvm-10fcac7b0768dfb1d9fb3030f2bb664ad8e4e65b.tar.gz
bcm5719-llvm-10fcac7b0768dfb1d9fb3030f2bb664ad8e4e65b.zip
Use ErrorOr in getRelocationAdress.
We can probably do better in this method, but this is an improvement and enables further ErrorOr cleanups. llvm-svn: 241114
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/COFFObjectFile.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp
index d8f460f29b0..30d16d0a15f 100644
--- a/llvm/lib/Object/COFFObjectFile.cpp
+++ b/llvm/lib/Object/COFFObjectFile.cpp
@@ -958,8 +958,7 @@ void COFFObjectFile::moveRelocationNext(DataRefImpl &Rel) const {
reinterpret_cast<const coff_relocation*>(Rel.p) + 1);
}
-std::error_code COFFObjectFile::getRelocationAddress(DataRefImpl Rel,
- uint64_t &Res) const {
+ErrorOr<uint64_t> COFFObjectFile::getRelocationAddress(DataRefImpl Rel) const {
report_fatal_error("getRelocationAddress not implemented in COFFObjectFile");
}
OpenPOWER on IntegriCloud