forked from OSchip/llvm-project
[llvm] Drop unnecessary const from return types (NFC)
Identified with readability-const-return-type.
This commit is contained in:
parent
3c94d5d9d2
commit
8445883327
|
@ -221,7 +221,7 @@ public:
|
|||
}
|
||||
|
||||
/// Returns the register used as static base in RWPI variants.
|
||||
virtual const MCRegister getStaticBase() const { return MCRegister::NoRegister; }
|
||||
virtual MCRegister getStaticBase() const { return MCRegister::NoRegister; }
|
||||
|
||||
/// Get the target specific RWPI relocation.
|
||||
virtual const MCExpr *getIndirectSymViaRWPI(const MCSymbol *Sym) const {
|
||||
|
|
|
@ -54,9 +54,7 @@ void ARMElfTargetObjectFile::Initialize(MCContext &Ctx,
|
|||
}
|
||||
}
|
||||
|
||||
const MCRegister ARMElfTargetObjectFile::getStaticBase() const {
|
||||
return ARM::R9;
|
||||
}
|
||||
MCRegister ARMElfTargetObjectFile::getStaticBase() const { return ARM::R9; }
|
||||
|
||||
const MCExpr *ARMElfTargetObjectFile::
|
||||
getIndirectSymViaRWPI(const MCSymbol *Sym) const {
|
||||
|
|
|
@ -24,7 +24,7 @@ public:
|
|||
|
||||
void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
|
||||
|
||||
const MCRegister getStaticBase() const override;
|
||||
MCRegister getStaticBase() const override;
|
||||
|
||||
const MCExpr *getIndirectSymViaRWPI(const MCSymbol *Sym) const override;
|
||||
|
||||
|
|
Loading…
Reference in New Issue