Expand Up
@@ -18,7 +18,6 @@
#include " llvm/ExecutionEngine/JITLink/JITLink.h"
#include " llvm/Object/COFF.h"
#include " COFFDirectiveParser.h"
#include " EHFrameSupportImpl.h"
#include " JITLinkGeneric.h"
Expand Down
Expand Up
@@ -134,11 +133,6 @@ class COFFLinkGraphBuilder {
Section &getCommonSection ();
Symbol *createExternalSymbol (COFFSymbolIndex SymIndex, StringRef SymbolName,
object::COFFSymbolRef Symbol,
const object::coff_section *Section);
Expected<Symbol *> createAliasSymbol (StringRef SymbolName, Linkage L, Scope S,
Symbol &Target);
Expected<Symbol *> createDefinedSymbol (COFFSymbolIndex SymIndex,
StringRef SymbolName,
object::COFFSymbolRef Symbol,
Expand All
@@ -149,10 +143,7 @@ class COFFLinkGraphBuilder {
Expected<Symbol *> exportCOMDATSymbol (COFFSymbolIndex SymIndex,
StringRef SymbolName,
object::COFFSymbolRef Symbol);
Error handleDirectiveSection (StringRef Str);
Error flushWeakAliasRequests ();
Error handleAlternateNames ();
Error calculateImplicitSizeOfSymbols ();
static uint64_t getSectionAddress (const object::COFFObjectFile &Obj,
Expand All
@@ -163,22 +154,18 @@ class COFFLinkGraphBuilder {
static unsigned getPointerSize (const object::COFFObjectFile &Obj);
static support::endianness getEndianness (const object::COFFObjectFile &Obj);
static StringRef getDLLImportStubPrefix () { return " __imp_" ; }
static StringRef getDirectiveSectionName () { return " .drectve" ; }
StringRef getCOFFSectionName (COFFSectionIndex SectionIndex,
const object::coff_section *Sec,
object::COFFSymbolRef Sym);
const object::COFFObjectFile &Obj;
std::unique_ptr<LinkGraph> G;
COFFDirectiveParser DirectiveParser;
Section *CommonSection = nullptr ;
std::vector<Block *> GraphBlocks;
std::vector<Symbol *> GraphSymbols;
DenseMap<StringRef, StringRef> AlternateNames;
DenseMap<StringRef, Symbol *> ExternalSymbols;
DenseMap<StringRef, Symbol *> DefinedSymbols;
};
template <typename RelocHandlerFunction>
Expand Down