|
@@ -58,8 +58,7 @@ public:
|
|
/// @brief Get a string that represents the type of this relocation.
|
|
/// @brief Get a string that represents the type of this relocation.
|
|
///
|
|
///
|
|
/// This is for display purposes only.
|
|
/// This is for display purposes only.
|
|
- std::error_code getTypeName(SmallVectorImpl<char> &Result) const;
|
|
|
|
-
|
|
|
|
|
|
+ void getTypeName(SmallVectorImpl<char> &Result) const;
|
|
|
|
|
|
DataRefImpl getRawDataRefImpl() const;
|
|
DataRefImpl getRawDataRefImpl() const;
|
|
const ObjectFile *getObject() const;
|
|
const ObjectFile *getObject() const;
|
|
@@ -238,9 +237,8 @@ protected:
|
|
virtual uint64_t getRelocationOffset(DataRefImpl Rel) const = 0;
|
|
virtual uint64_t getRelocationOffset(DataRefImpl Rel) const = 0;
|
|
virtual symbol_iterator getRelocationSymbol(DataRefImpl Rel) const = 0;
|
|
virtual symbol_iterator getRelocationSymbol(DataRefImpl Rel) const = 0;
|
|
virtual uint64_t getRelocationType(DataRefImpl Rel) const = 0;
|
|
virtual uint64_t getRelocationType(DataRefImpl Rel) const = 0;
|
|
- virtual std::error_code
|
|
|
|
- getRelocationTypeName(DataRefImpl Rel,
|
|
|
|
- SmallVectorImpl<char> &Result) const = 0;
|
|
|
|
|
|
+ virtual void getRelocationTypeName(DataRefImpl Rel,
|
|
|
|
+ SmallVectorImpl<char> &Result) const = 0;
|
|
|
|
|
|
public:
|
|
public:
|
|
uint64_t getCommonSymbolSize(DataRefImpl Symb) const {
|
|
uint64_t getCommonSymbolSize(DataRefImpl Symb) const {
|
|
@@ -457,8 +455,7 @@ inline uint64_t RelocationRef::getType() const {
|
|
return OwningObject->getRelocationType(RelocationPimpl);
|
|
return OwningObject->getRelocationType(RelocationPimpl);
|
|
}
|
|
}
|
|
|
|
|
|
-inline std::error_code
|
|
|
|
-RelocationRef::getTypeName(SmallVectorImpl<char> &Result) const {
|
|
|
|
|
|
+inline void RelocationRef::getTypeName(SmallVectorImpl<char> &Result) const {
|
|
return OwningObject->getRelocationTypeName(RelocationPimpl, Result);
|
|
return OwningObject->getRelocationTypeName(RelocationPimpl, Result);
|
|
}
|
|
}
|
|
|
|
|