Stub out some of the MachO relocation decoding hooks.
authorOwen Anderson <resistor@mac.com>
Mon, 24 Oct 2011 20:19:18 +0000 (20:19 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 24 Oct 2011 20:19:18 +0000 (20:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142840 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Object/MachOObjectFile.cpp

index 7c6c232e63d800d7cdd5294f1c3d040094b3b288..19396be05d33ac15530748ac925eb8253e85db11 100644 (file)
@@ -641,6 +641,8 @@ error_code MachOObjectFile::getRelocationType(DataRefImpl Rel,
 }
 error_code MachOObjectFile::getRelocationTypeName(DataRefImpl Rel,
                                           SmallVectorImpl<char> &Result) const {
+  StringRef res = "Unknown";
+  Result.append(res.begin(), res.end());
   return object_error::success;
 }
 error_code MachOObjectFile::getRelocationAdditionalInfo(DataRefImpl Rel,
@@ -666,6 +668,8 @@ error_code MachOObjectFile::getRelocationAdditionalInfo(DataRefImpl Rel,
 }
 error_code MachOObjectFile::getRelocationValueString(DataRefImpl Rel,
                                           SmallVectorImpl<char> &Result) const {
+  StringRef res = "Unknown";
+  Result.append(res.begin(), res.end());
   return object_error::success;
 }