[lld] r222197 - [mach-o] fix typos. No function change

Nick Kledzik kledzik at apple.com
Mon Nov 17 16:30:14 PST 2014


Author: kledzik
Date: Mon Nov 17 18:30:14 2014
New Revision: 222197

URL: http://llvm.org/viewvc/llvm-project?rev=222197&view=rev
Log:
[mach-o] fix typos. No function change

Modified:
    lld/trunk/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp

Modified: lld/trunk/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp?rev=222197&r1=222196&r2=222197&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp Mon Nov 17 18:30:14 2014
@@ -226,7 +226,6 @@ const Registry::KindStrings ArchHandler_
   LLD_KIND_STRING_ENTRY(addOffset12),
   LLD_KIND_STRING_ENTRY(lazyPointer),
   LLD_KIND_STRING_ENTRY(lazyImmediateLocation),
-  LLD_KIND_STRING_ENTRY(pointer64),
 
   LLD_KIND_STRING_END
 };
@@ -393,7 +392,7 @@ std::error_code ArchHandler_arm64::getRe
       return ec;
     *addend = 0;
     return std::error_code();
-  case X86_64_RELOC_UNSIGNED                   | rExtern | rLength8:
+  case ARM64_RELOC_UNSIGNED                    | rExtern | rLength8:
     // ex: .quad _foo + N
     *kind = pointer64;
     if (auto ec = atomFromSymbolIndex(reloc.symbol, target))
@@ -415,7 +414,7 @@ std::error_code ArchHandler_arm64::getRe
     *addend = 0;
     return std::error_code();
   default:
-    return make_dynamic_error_code(Twine("unsupported arm relocation type"));
+    return make_dynamic_error_code(Twine("unsupported arm64 relocation type"));
   }
 }
 
@@ -709,7 +708,7 @@ void ArchHandler_arm64::appendSectionRel
     return;
   case pointer64:
     appendReloc(relocs, sectionOffset, symbolIndexForAtom(*ref.target()), 0,
-                  X86_64_RELOC_UNSIGNED | rExtern | rLength8);
+                  ARM64_RELOC_UNSIGNED | rExtern | rLength8);
     return;
   case delta64:
     appendReloc(relocs, sectionOffset, symbolIndexForAtom(atom), 0,





More information about the llvm-commits mailing list