Don't return error_code from function that never fails.
[oota-llvm.git] / include / llvm / Object / MachO.h
index 6b04bf9bd57ff04fb66a608b52cb9fc7ca906f79..43f8b0a11e2c4980cc4602107b072718527ba924 100644 (file)
@@ -237,8 +237,7 @@ public:
   void moveRelocationNext(DataRefImpl &Rel) const override;
   std::error_code getRelocationAddress(DataRefImpl Rel,
                                        uint64_t &Res) const override;
-  std::error_code getRelocationOffset(DataRefImpl Rel,
-                                      uint64_t &Res) const override;
+  uint64_t getRelocationOffset(DataRefImpl Rel) const override;
   symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
   section_iterator getRelocationSection(DataRefImpl Rel) const;
   std::error_code getRelocationType(DataRefImpl Rel,