[llvm-commits] [llvm] r142840 - /llvm/trunk/lib/Object/MachOObjectFile.cpp

Owen Anderson resistor at mac.com
Mon Oct 24 13:19:18 PDT 2011


Author: resistor
Date: Mon Oct 24 15:19:18 2011
New Revision: 142840

URL: http://llvm.org/viewvc/llvm-project?rev=142840&view=rev
Log:
Stub out some of the MachO relocation decoding hooks.

Modified:
    llvm/trunk/lib/Object/MachOObjectFile.cpp

Modified: llvm/trunk/lib/Object/MachOObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/MachOObjectFile.cpp?rev=142840&r1=142839&r2=142840&view=diff
==============================================================================
--- llvm/trunk/lib/Object/MachOObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/MachOObjectFile.cpp Mon Oct 24 15:19:18 2011
@@ -641,6 +641,8 @@
 }
 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::getRelocationValueString(DataRefImpl Rel,
                                           SmallVectorImpl<char> &Result) const {
+  StringRef res = "Unknown";
+  Result.append(res.begin(), res.end());
   return object_error::success;
 }
 





More information about the llvm-commits mailing list