Don't return error_code from a function that doesn't fail.
[oota-llvm.git] / include / llvm / Object / MachO.h
index 50baeb79a0b2f6e30e29b48898a213e83a5f0686..6d2d14ed27b1e1bc4dfe1f870881155163e96ea1 100644 (file)
@@ -241,9 +241,8 @@ public:
   symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
   section_iterator getRelocationSection(DataRefImpl Rel) const;
   uint64_t getRelocationType(DataRefImpl Rel) const override;
-  std::error_code
-  getRelocationTypeName(DataRefImpl Rel,
-                        SmallVectorImpl<char> &Result) const override;
+  void getRelocationTypeName(DataRefImpl Rel,
+                             SmallVectorImpl<char> &Result) const override;
   uint8_t getRelocationLength(DataRefImpl Rel) const;
 
   // MachO specific.