From: Alexey Samsonov Date: Fri, 28 Feb 2014 08:23:09 +0000 (+0000) Subject: Turn static inline functions to inline, following Rafael's suggestion X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6e2a50ea0a774465c768e6e465c3c30358df6331;p=oota-llvm.git 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 --- diff --git a/include/llvm/Object/ELFObjectFile.h b/include/llvm/Object/ELFObjectFile.h index 917786fd227..93d29662545 100644 --- a/include/llvm/Object/ELFObjectFile.h +++ b/include/llvm/Object/ELFObjectFile.h @@ -992,8 +992,8 @@ unsigned ELFObjectFile::getArch() const { /// FIXME: Maybe we should have a base ElfObjectFile that is not a template /// and make these member functions? -static inline error_code getELFRelocationAddend(const RelocationRef R, - int64_t &Addend) { +inline error_code getELFRelocationAddend(const RelocationRef R, + int64_t &Addend) { const ObjectFile *Obj = R.getObjectFile(); DataRefImpl DRI = R.getRawDataRefImpl(); // 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"); } -static inline std::pair +inline std::pair getELFDynamicSymbolIterators(SymbolicFile *Obj) { if (const ELF32LEObjectFile *ELF = dyn_cast(Obj)) 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 /// information from an ELFObjectFile. -static inline error_code GetELFSymbolVersion(const ObjectFile *Obj, - const SymbolRef &Sym, - StringRef &Version, - bool &IsDefault) { +inline error_code GetELFSymbolVersion(const ObjectFile *Obj, + const SymbolRef &Sym, StringRef &Version, + bool &IsDefault) { // Little-endian 32-bit if (const ELF32LEObjectFile *ELFObj = dyn_cast(Obj)) return ELFObj->getSymbolVersion(Sym, Version, IsDefault);