}
static uint32_t getEFlags(InputFile *file) {
- if (config->ekind == ELF64BEKind)
+ if (file->ekind == ELF64BEKind)
return cast<ObjFile<ELF64BE>>(file)->getObj().getHeader().e_flags;
return cast<ObjFile<ELF64LE>>(file)->getObj().getHeader().e_flags;
}
}
static void initSectionsAndLocalSyms(ELFFileBase *file, bool ignoreComdats) {
- switch (config->ekind) {
+ switch (file->ekind) {
case ELF32LEKind:
cast<ObjFile<ELF32LE>>(file)->initSectionsAndLocalSyms(ignoreComdats);
break;
}
static void postParseObjectFile(ELFFileBase *file) {
- switch (config->ekind) {
+ switch (file->ekind) {
case ELF32LEKind:
cast<ObjFile<ELF32LE>>(file)->postParse();
break;
uint64_t offset) {
if (kind() != ObjKind)
return "";
- switch (config->ekind) {
+ switch (ekind) {
default:
llvm_unreachable("Invalid kind");
case ELF32LEKind:
check(this->getObj().getSectionContents(sec));
StringRef name = check(obj.getSectionName(sec, shstrtab));
this->sections[i] = &InputSection::discarded;
- if (Error e = attributes.parse(contents, config->ekind == ELF32LEKind
- ? support::little
- : support::big)) {
+ if (Error e =
+ attributes.parse(contents, ekind == ELF32LEKind ? support::little
+ : support::big)) {
InputSection isec(*this, sec, name);
warn(toString(&isec) + ": " + llvm::toString(std::move(e)));
} else {