Expose ELFFileBase::getEMachine. NFC.
I will use it in a followup patch.
llvm-svn: 248287
diff --git a/lld/ELF/InputFiles.h b/lld/ELF/InputFiles.h
index d8d0769..52f4d17 100644
--- a/lld/ELF/InputFiles.h
+++ b/lld/ELF/InputFiles.h
@@ -62,6 +62,8 @@
bool isCompatibleWith(const ELFFileBase &Other) const;
ELFKind getELFKind() const { return EKind; }
+ uint16_t getEMachine() const;
+
protected:
const ELFKind EKind;
};
@@ -122,6 +124,7 @@
typedef typename llvm::object::ELFFile<ELFT>::Elf_Word Elf_Word;
public:
+ using ELFData<ELFT>::getEMachine;
static bool classof(const InputFile *F) {
return F->kind() == ObjectKind &&
@@ -194,6 +197,7 @@
std::vector<SharedSymbol<ELFT>> SymbolBodies;
public:
+ using ELFData<ELFT>::getEMachine;
llvm::MutableArrayRef<SharedSymbol<ELFT>> getSharedSymbols() {
return SymbolBodies;
}