forked from OSchip/llvm-project
parent
93b88f0619
commit
cfe53dff72
|
@ -554,13 +554,6 @@ template <class ELFT> OutputSectionFactory<ELFT>::OutputSectionFactory() {}
|
||||||
|
|
||||||
template <class ELFT> OutputSectionFactory<ELFT>::~OutputSectionFactory() {}
|
template <class ELFT> OutputSectionFactory<ELFT>::~OutputSectionFactory() {}
|
||||||
|
|
||||||
template <class ELFT>
|
|
||||||
std::pair<OutputSectionBase *, bool>
|
|
||||||
OutputSectionFactory<ELFT>::create(InputSectionBase<ELFT> *C,
|
|
||||||
StringRef OutsecName) {
|
|
||||||
SectionKey Key = createKey(C, OutsecName);
|
|
||||||
return create(Key, C);
|
|
||||||
}
|
|
||||||
|
|
||||||
static uint64_t getIncompatibleFlags(uint64_t Flags) {
|
static uint64_t getIncompatibleFlags(uint64_t Flags) {
|
||||||
return Flags & (SHF_ALLOC | SHF_TLS);
|
return Flags & (SHF_ALLOC | SHF_TLS);
|
||||||
|
@ -580,8 +573,9 @@ static bool canMergeToProgbits(unsigned Type) {
|
||||||
|
|
||||||
template <class ELFT>
|
template <class ELFT>
|
||||||
std::pair<OutputSectionBase *, bool>
|
std::pair<OutputSectionBase *, bool>
|
||||||
OutputSectionFactory<ELFT>::create(const SectionKey &Key,
|
OutputSectionFactory<ELFT>::create(InputSectionBase<ELFT> *C,
|
||||||
InputSectionBase<ELFT> *C) {
|
StringRef OutsecName) {
|
||||||
|
SectionKey Key = createKey(C, OutsecName);
|
||||||
uintX_t Flags = getOutFlags(C);
|
uintX_t Flags = getOutFlags(C);
|
||||||
OutputSectionBase *&Sec = Map[Key];
|
OutputSectionBase *&Sec = Map[Key];
|
||||||
if (Sec) {
|
if (Sec) {
|
||||||
|
|
|
@ -216,9 +216,6 @@ public:
|
||||||
~OutputSectionFactory();
|
~OutputSectionFactory();
|
||||||
std::pair<OutputSectionBase *, bool> create(InputSectionBase<ELFT> *C,
|
std::pair<OutputSectionBase *, bool> create(InputSectionBase<ELFT> *C,
|
||||||
StringRef OutsecName);
|
StringRef OutsecName);
|
||||||
std::pair<OutputSectionBase *, bool> create(const SectionKey &Key,
|
|
||||||
InputSectionBase<ELFT> *C);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
llvm::SmallDenseMap<SectionKey, OutputSectionBase *> Map;
|
llvm::SmallDenseMap<SectionKey, OutputSectionBase *> Map;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue