[llvm] r202473 - Turn static inline functions to inline, following Rafael's suggestion
Alexey Samsonov
samsonov at google.com
Fri Feb 28 00:23:09 PST 2014
Author: samsonov
Date: Fri Feb 28 02:23:09 2014
New Revision: 202473
URL: http://llvm.org/viewvc/llvm-project?rev=202473&view=rev
Log:
Turn static inline functions to inline, following Rafael's suggestion
Modified:
llvm/trunk/include/llvm/Object/ELFObjectFile.h
Modified: llvm/trunk/include/llvm/Object/ELFObjectFile.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ELFObjectFile.h?rev=202473&r1=202472&r2=202473&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ELFObjectFile.h (original)
+++ llvm/trunk/include/llvm/Object/ELFObjectFile.h Fri Feb 28 02:23:09 2014
@@ -992,8 +992,8 @@ unsigned ELFObjectFile<ELFT>::getArch()
/// 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 getELFRelocatio
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(SymbolicFil
/// 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);
More information about the llvm-commits
mailing list