[lld] r238017 - [ARM] report_fatal_error for not implemented functionality

Denis Protivensky dprotivensky at accesssoftek.com
Fri May 22 05:39:06 PDT 2015


Author: denis-protivensky
Date: Fri May 22 07:39:05 2015
New Revision: 238017

URL: http://llvm.org/viewvc/llvm-project?rev=238017&view=rev
Log:
[ARM] report_fatal_error for not implemented functionality

Modified:
    lld/trunk/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp

Modified: lld/trunk/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp?rev=238017&r1=238016&r2=238017&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp Fri May 22 07:39:05 2015
@@ -112,8 +112,8 @@ static Reference::Addend readAddend(cons
   }
 }
 
-static inline std::error_code make_unsupported_range_group_reloc_error() {
-  return make_dynamic_error_code(
+static inline void report_unsupported_range_group_reloc_error() {
+  llvm::report_fatal_error(
       "Negative offsets for group relocations are not implemented");
 }
 
@@ -497,7 +497,7 @@ static std::error_code relocR_ARM_ALU_PC
                                                uint64_t S, int64_t A) {
   int32_t result = (int32_t)(S + A - P);
   if (result < 0)
-    return make_unsupported_range_group_reloc_error();
+    report_unsupported_range_group_reloc_error();
 
   DEBUG(llvm::dbgs() << "\t\tHandle " << LLVM_FUNCTION_NAME << " -";
         llvm::dbgs() << " S: 0x" << Twine::utohexstr(S);
@@ -514,7 +514,7 @@ static std::error_code relocR_ARM_ALU_PC
                                                uint64_t S, int64_t A) {
   int32_t result = (int32_t)(S + A - P);
   if (result < 0)
-    return make_unsupported_range_group_reloc_error();
+    report_unsupported_range_group_reloc_error();
 
   DEBUG(llvm::dbgs() << "\t\tHandle " << LLVM_FUNCTION_NAME << " -";
         llvm::dbgs() << " S: 0x" << Twine::utohexstr(S);
@@ -531,7 +531,7 @@ static std::error_code relocR_ARM_LDR_PC
                                             uint64_t S, int64_t A) {
   int32_t result = (int32_t)(S + A - P);
   if (result < 0)
-    return make_unsupported_range_group_reloc_error();
+    report_unsupported_range_group_reloc_error();
 
   DEBUG(llvm::dbgs() << "\t\tHandle " << LLVM_FUNCTION_NAME << " -";
         llvm::dbgs() << " S: 0x" << Twine::utohexstr(S);





More information about the llvm-commits mailing list