Inline SymbolBody::init. NFC.
I think this function was too short to be an independent function. llvm-svn: 270534
This commit is contained in:
parent
ace4f90cf3
commit
70595aae64
|
@ -92,20 +92,12 @@ static typename ELFT::uint getSymVA(const SymbolBody &Body,
|
||||||
|
|
||||||
SymbolBody::SymbolBody(Kind K, uint32_t NameOffset, uint8_t StOther,
|
SymbolBody::SymbolBody(Kind K, uint32_t NameOffset, uint8_t StOther,
|
||||||
uint8_t Type)
|
uint8_t Type)
|
||||||
: SymbolKind(K), IsLocal(true), Type(Type), StOther(StOther),
|
: SymbolKind(K), NeedsCopyOrPltAddr(false), IsLocal(true), Type(Type),
|
||||||
NameOffset(NameOffset) {
|
StOther(StOther), NameOffset(NameOffset) {}
|
||||||
init();
|
|
||||||
}
|
|
||||||
|
|
||||||
SymbolBody::SymbolBody(Kind K, StringRef Name, uint8_t StOther, uint8_t Type)
|
SymbolBody::SymbolBody(Kind K, StringRef Name, uint8_t StOther, uint8_t Type)
|
||||||
: SymbolKind(K), IsLocal(false), Type(Type), StOther(StOther),
|
: SymbolKind(K), NeedsCopyOrPltAddr(false), IsLocal(false), Type(Type),
|
||||||
Name({Name.data(), Name.size()}) {
|
StOther(StOther), Name({Name.data(), Name.size()}) {}
|
||||||
init();
|
|
||||||
}
|
|
||||||
|
|
||||||
void SymbolBody::init() {
|
|
||||||
NeedsCopyOrPltAddr = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Returns true if a symbol can be replaced at load-time by a symbol
|
// Returns true if a symbol can be replaced at load-time by a symbol
|
||||||
// with the same name defined in other ELF executable or DSO.
|
// with the same name defined in other ELF executable or DSO.
|
||||||
|
|
|
@ -43,8 +43,6 @@ struct Symbol;
|
||||||
|
|
||||||
// The base class for real symbol classes.
|
// The base class for real symbol classes.
|
||||||
class SymbolBody {
|
class SymbolBody {
|
||||||
void init();
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum Kind {
|
enum Kind {
|
||||||
DefinedFirst,
|
DefinedFirst,
|
||||||
|
|
Loading…
Reference in New Issue