Turn static inline functions to inline, following Rafael's suggestion
authorAlexey Samsonov <samsonov@google.com>
Fri, 28 Feb 2014 08:23:09 +0000 (08:23 +0000)
committerAlexey Samsonov <samsonov@google.com>
Fri, 28 Feb 2014 08:23:09 +0000 (08:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202473 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Object/ELFObjectFile.h

index 917786fd22738b987f29f9835c166fe46fea27f5..93d29662545874e7ffacf310470978097be7e598 100644 (file)
@@ -992,8 +992,8 @@ unsigned ELFObjectFile<ELFT>::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<symbol_iterator, symbol_iterator>
+inline std::pair<symbol_iterator, symbol_iterator>
 getELFDynamicSymbolIterators(SymbolicFile *Obj) {
   if (const ELF32LEObjectFile *ELF = dyn_cast<ELF32LEObjectFile>(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<ELF32LEObjectFile>(Obj))
     return ELFObj->getSymbolVersion(Sym, Version, IsDefault);