summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Protivensky <dprotivensky@accesssoftek.com>2015-05-22 12:39:05 +0000
committerDenis Protivensky <dprotivensky@accesssoftek.com>2015-05-22 12:39:05 +0000
commitf2c22f4ff8b202f7f66fae3a218c4f9609ee112f (patch)
tree4263eb051c65682dd8716932215c3e26ed729502
parentb37b0ed239f51932b3c58d03f12b7f213a99cf1b (diff)
downloadbcm5719-llvm-f2c22f4ff8b202f7f66fae3a218c4f9609ee112f.tar.gz
bcm5719-llvm-f2c22f4ff8b202f7f66fae3a218c4f9609ee112f.zip
[ARM] report_fatal_error for not implemented functionality
llvm-svn: 238017
-rw-r--r--lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp b/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp
index 5142d4b80a9..97b149133ff 100644
--- a/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp
+++ b/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp
@@ -112,8 +112,8 @@ static Reference::Addend readAddend(const uint8_t *location,
}
}
-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_G0_NC(uint8_t *location, uint64_t P,
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_G1_NC(uint8_t *location, uint64_t P,
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_G2(uint8_t *location, uint64_t P,
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);
OpenPOWER on IntegriCloud