diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:10:56 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:10:56 +0000 | 
| commit | 044eb2f6afba375a914ac9d8024f8f5142bb912e (patch) | |
| tree | 1475247dc9f9fe5be155ebd4c9069c75aadf8c20 /include/llvm/MC/MCContext.h | |
| parent | eb70dddbd77e120e5d490bd8fbe7ff3f8fa81c6b (diff) | |
Notes
Diffstat (limited to 'include/llvm/MC/MCContext.h')
| -rw-r--r-- | include/llvm/MC/MCContext.h | 52 | 
1 files changed, 13 insertions, 39 deletions
| diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h index 2c60014adf23..432fc0ede072 100644 --- a/include/llvm/MC/MCContext.h +++ b/include/llvm/MC/MCContext.h @@ -441,53 +441,27 @@ namespace llvm {      getAssociativeCOFFSection(MCSectionCOFF *Sec, const MCSymbol *KeySym,                                unsigned UniqueID = GenericSectionID); -    MCSectionWasm *getWasmSection(const Twine &Section, unsigned Type, -                                  unsigned Flags) { -      return getWasmSection(Section, Type, Flags, nullptr); +    MCSectionWasm *getWasmSection(const Twine &Section, SectionKind K) { +      return getWasmSection(Section, K, nullptr);      } -    MCSectionWasm *getWasmSection(const Twine &Section, unsigned Type, -                                  unsigned Flags, const char *BeginSymName) { -      return getWasmSection(Section, Type, Flags, "", BeginSymName); -    } - -    MCSectionWasm *getWasmSection(const Twine &Section, unsigned Type, -                                  unsigned Flags, const Twine &Group) { -      return getWasmSection(Section, Type, Flags, Group, nullptr); -    } - -    MCSectionWasm *getWasmSection(const Twine &Section, unsigned Type, -                                  unsigned Flags, const Twine &Group, +    MCSectionWasm *getWasmSection(const Twine &Section, SectionKind K,                                    const char *BeginSymName) { -      return getWasmSection(Section, Type, Flags, Group, ~0, BeginSymName); +      return getWasmSection(Section, K, "", ~0, BeginSymName);      } -    MCSectionWasm *getWasmSection(const Twine &Section, unsigned Type, -                                  unsigned Flags, const Twine &Group, -                                  unsigned UniqueID) { -      return getWasmSection(Section, Type, Flags, Group, UniqueID, nullptr); +    MCSectionWasm *getWasmSection(const Twine &Section, SectionKind K, +                                  const Twine &Group, unsigned UniqueID) { +      return getWasmSection(Section, K, Group, UniqueID, nullptr);      } -    MCSectionWasm *getWasmSection(const Twine &Section, unsigned Type, -                                  unsigned Flags, const Twine &Group, -                                  unsigned UniqueID, const char *BeginSymName); - -    MCSectionWasm *getWasmSection(const Twine &Section, unsigned Type, -                                  unsigned Flags, const MCSymbolWasm *Group, -                                  unsigned UniqueID, const char *BeginSymName); - -    /// Get a section with the provided group identifier. This section is -    /// named by concatenating \p Prefix with '.' then \p Suffix. The \p Type -    /// describes the type of the section and \p Flags are used to further -    /// configure this named section. -    MCSectionWasm *getWasmNamedSection(const Twine &Prefix, const Twine &Suffix, -                                       unsigned Type, unsigned Flags); - -    MCSectionWasm *createWasmRelSection(const Twine &Name, unsigned Type, -                                        unsigned Flags, -                                        const MCSymbolWasm *Group); +    MCSectionWasm *getWasmSection(const Twine &Section, SectionKind K, +                                  const Twine &Group, unsigned UniqueID, +                                  const char *BeginSymName); -    void renameWasmSection(MCSectionWasm *Section, StringRef Name); +    MCSectionWasm *getWasmSection(const Twine &Section, SectionKind K, +                                  const MCSymbolWasm *Group, unsigned UniqueID, +                                  const char *BeginSymName);      // Create and save a copy of STI and return a reference to the copy.      MCSubtargetInfo &getSubtargetCopy(const MCSubtargetInfo &STI); | 
