Simplify mapping from relocation sections to relocated sections.

Just store the section in MCSectionELF. This avoids multiple hash lookups.

This will also be used by ARM_EXIDX.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234139 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2015-04-06 03:09:30 +00:00
parent d0440d2705
commit 01183f6492
4 changed files with 38 additions and 47 deletions

View File

@@ -336,7 +336,8 @@ namespace llvm {
const MCSectionELF *createELFRelSection(StringRef Name, unsigned Type,
unsigned Flags, unsigned EntrySize,
const MCSymbol *Group);
const MCSymbol *Group,
const MCSectionELF *Associated);
void renameELFSection(const MCSectionELF *Section, StringRef Name);