From 9ae5f77fd27dc9d5bb35364fd970fc2d63099209 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 18 Jun 2019 12:30:06 +0000 Subject: [PATCH] MCContext: Delete unused functions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363674 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCContext.h | 15 --------------- lib/MC/MCContext.cpp | 8 -------- 2 files changed, 23 deletions(-) diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h index 44543bd4737..cfe4b9a3143 100644 --- a/include/llvm/MC/MCContext.h +++ b/include/llvm/MC/MCContext.h @@ -440,8 +440,6 @@ namespace llvm { SectionKind Kind, const char *BeginSymName = nullptr); - MCSectionCOFF *getCOFFSection(StringRef Section); - /// Gets or creates a section equivalent to Sec that is associated with the /// section containing KeySym. For example, to create a debug info section /// associated with an inline function, pass the normal debug info section @@ -488,12 +486,6 @@ namespace llvm { /// Set the compilation directory for DW_AT_comp_dir void setCompilationDir(StringRef S) { CompilationDir = S.str(); } - /// Get the debug prefix map. - const std::map & - getDebugPrefixMap() const { - return DebugPrefixMap; - } - /// Add an entry to the debug prefix map. void addDebugPrefixMapEntry(const std::string &From, const std::string &To); @@ -538,13 +530,6 @@ namespace llvm { return getMCDwarfLineTable(CUID).getMCDwarfDirs(); } - bool hasMCLineSections() const { - for (const auto &Table : MCDwarfLineTablesCUMap) - if (!Table.second.getMCDwarfFiles().empty() || Table.second.getLabel()) - return true; - return false; - } - unsigned getDwarfCompileUnitID() { return DwarfCompileUnitID; } void setDwarfCompileUnitID(unsigned CUIndex) { diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp index 43a7e8a64af..5ec03ee0894 100644 --- a/lib/MC/MCContext.cpp +++ b/lib/MC/MCContext.cpp @@ -462,14 +462,6 @@ MCSectionCOFF *MCContext::getCOFFSection(StringRef Section, BeginSymName); } -MCSectionCOFF *MCContext::getCOFFSection(StringRef Section) { - COFFSectionKey T{Section, "", 0, GenericSectionID}; - auto Iter = COFFUniquingMap.find(T); - if (Iter == COFFUniquingMap.end()) - return nullptr; - return Iter->second; -} - MCSectionCOFF *MCContext::getAssociativeCOFFSection(MCSectionCOFF *Sec, const MCSymbol *KeySym, unsigned UniqueID) { -- 2.40.0