mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
Turn static inline functions to inline, following Rafael's suggestion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202473 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -992,8 +992,8 @@ unsigned ELFObjectFile<ELFT>::getArch() const {
|
|||||||
|
|
||||||
/// FIXME: Maybe we should have a base ElfObjectFile that is not a template
|
/// FIXME: Maybe we should have a base ElfObjectFile that is not a template
|
||||||
/// and make these member functions?
|
/// and make these member functions?
|
||||||
static inline error_code getELFRelocationAddend(const RelocationRef R,
|
inline error_code getELFRelocationAddend(const RelocationRef R,
|
||||||
int64_t &Addend) {
|
int64_t &Addend) {
|
||||||
const ObjectFile *Obj = R.getObjectFile();
|
const ObjectFile *Obj = R.getObjectFile();
|
||||||
DataRefImpl DRI = R.getRawDataRefImpl();
|
DataRefImpl DRI = R.getRawDataRefImpl();
|
||||||
// Little-endian 32-bit
|
// Little-endian 32-bit
|
||||||
@@ -1015,7 +1015,7 @@ static inline error_code getELFRelocationAddend(const RelocationRef R,
|
|||||||
llvm_unreachable("Object passed to getELFRelocationAddend() is not ELF");
|
llvm_unreachable("Object passed to getELFRelocationAddend() is not ELF");
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline std::pair<symbol_iterator, symbol_iterator>
|
inline std::pair<symbol_iterator, symbol_iterator>
|
||||||
getELFDynamicSymbolIterators(SymbolicFile *Obj) {
|
getELFDynamicSymbolIterators(SymbolicFile *Obj) {
|
||||||
if (const ELF32LEObjectFile *ELF = dyn_cast<ELF32LEObjectFile>(Obj))
|
if (const ELF32LEObjectFile *ELF = dyn_cast<ELF32LEObjectFile>(Obj))
|
||||||
return std::make_pair(ELF->dynamic_symbol_begin(),
|
return std::make_pair(ELF->dynamic_symbol_begin(),
|
||||||
@@ -1036,10 +1036,9 @@ getELFDynamicSymbolIterators(SymbolicFile *Obj) {
|
|||||||
|
|
||||||
/// This is a generic interface for retrieving GNU symbol version
|
/// This is a generic interface for retrieving GNU symbol version
|
||||||
/// information from an ELFObjectFile.
|
/// information from an ELFObjectFile.
|
||||||
static inline error_code GetELFSymbolVersion(const ObjectFile *Obj,
|
inline error_code GetELFSymbolVersion(const ObjectFile *Obj,
|
||||||
const SymbolRef &Sym,
|
const SymbolRef &Sym, StringRef &Version,
|
||||||
StringRef &Version,
|
bool &IsDefault) {
|
||||||
bool &IsDefault) {
|
|
||||||
// Little-endian 32-bit
|
// Little-endian 32-bit
|
||||||
if (const ELF32LEObjectFile *ELFObj = dyn_cast<ELF32LEObjectFile>(Obj))
|
if (const ELF32LEObjectFile *ELFObj = dyn_cast<ELF32LEObjectFile>(Obj))
|
||||||
return ELFObj->getSymbolVersion(Sym, Version, IsDefault);
|
return ELFObj->getSymbolVersion(Sym, Version, IsDefault);
|
||||||
|
Reference in New Issue
Block a user