[llvm] r221216 - Remove the static version of getScatteredRelocationType() now that r221211 added

Kevin Enderby enderby at apple.com
Mon Nov 3 17:12:40 PST 2014


Author: enderby
Date: Mon Nov  3 19:12:39 2014
New Revision: 221216

URL: http://llvm.org/viewvc/llvm-project?rev=221216&view=rev
Log:
Remove the static version of getScatteredRelocationType() now that r221211 added
a public version MachOObjectFile::getScatteredRelocationType().

This should fix the build bot for the unused function error.

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=221216&r1=221215&r2=221216&view=diff
==============================================================================
--- llvm/trunk/lib/Object/MachOObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/MachOObjectFile.cpp Mon Nov  3 19:12:39 2014
@@ -219,11 +219,6 @@ static unsigned getPlainRelocationType(c
   return RE.r_word1 & 0xf;
 }
 
-static unsigned
-getScatteredRelocationType(const MachO::any_relocation_info &RE) {
-  return (RE.r_word0 >> 24) & 0xf;
-}
-
 static uint32_t getSectionFlags(const MachOObjectFile *O,
                                 DataRefImpl Sec) {
   if (O->is64Bit()) {





More information about the llvm-commits mailing list