projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use 'override/final' instead of 'virtual' for overridden methods
[oota-llvm.git]
/
lib
/
Target
/
ARM
/
MCTargetDesc
/
ARMELFObjectWriter.cpp
diff --git
a/lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
b/lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
index a821a6b0b53230efd63cf73eb157e9c86457bba9..c5d358d764f5f245057400970f07612af9aa03aa 100644
(file)
--- a/
lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
+++ b/
lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
@@
-32,7
+32,7
@@
namespace {
public:
ARMELFObjectWriter(uint8_t OSABI);
public:
ARMELFObjectWriter(uint8_t OSABI);
-
virtual ~ARMELFObjectWriter()
;
+
~ARMELFObjectWriter() override
;
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
bool IsPCRel) const override;
unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
bool IsPCRel) const override;
@@
-81,7
+81,9
@@
unsigned ARMELFObjectWriter::GetRelocTypeInner(const MCValue &Target,
unsigned Type = 0;
if (IsPCRel) {
switch ((unsigned)Fixup.getKind()) {
unsigned Type = 0;
if (IsPCRel) {
switch ((unsigned)Fixup.getKind()) {
- default: llvm_unreachable("Unimplemented");
+ default:
+ report_fatal_error("unsupported relocation on symbol");
+ return ELF::R_ARM_NONE;
case FK_Data_4:
switch (Modifier) {
default: llvm_unreachable("Unsupported Modifier");
case FK_Data_4:
switch (Modifier) {
default: llvm_unreachable("Unsupported Modifier");
@@
-147,7
+149,9
@@
unsigned ARMELFObjectWriter::GetRelocTypeInner(const MCValue &Target,
}
} else {
switch ((unsigned)Fixup.getKind()) {
}
} else {
switch ((unsigned)Fixup.getKind()) {
- default: llvm_unreachable("invalid fixup kind!");
+ default:
+ report_fatal_error("unsupported relocation on symbol");
+ return ELF::R_ARM_NONE;
case FK_Data_1:
switch (Modifier) {
default: llvm_unreachable("unsupported Modifier");
case FK_Data_1:
switch (Modifier) {
default: llvm_unreachable("unsupported Modifier");