llvm.org GIT mirror llvm / 9ae5f77
MCContext: Delete unused functions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363674 91177308-0d34-0410-b5e6-96231b3b80d8 Fangrui Song 28 days ago
2 changed file(s) with 0 addition(s) and 23 deletion(s). Raw diff Collapse all Expand all
439439 SectionKind Kind,
440440 const char *BeginSymName = nullptr);
441441
442 MCSectionCOFF *getCOFFSection(StringRef Section);
443
444442 /// Gets or creates a section equivalent to Sec that is associated with the
445443 /// section containing KeySym. For example, to create a debug info section
446444 /// associated with an inline function, pass the normal debug info section
487485 /// Set the compilation directory for DW_AT_comp_dir
488486 void setCompilationDir(StringRef S) { CompilationDir = S.str(); }
489487
490 /// Get the debug prefix map.
491 const std::map &
492 getDebugPrefixMap() const {
493 return DebugPrefixMap;
494 }
495
496488 /// Add an entry to the debug prefix map.
497489 void addDebugPrefixMapEntry(const std::string &From, const std::string &To);
498490
535527
536528 const SmallVectorImpl &getMCDwarfDirs(unsigned CUID = 0) {
537529 return getMCDwarfLineTable(CUID).getMCDwarfDirs();
538 }
539
540 bool hasMCLineSections() const {
541 for (const auto &Table : MCDwarfLineTablesCUMap)
542 if (!Table.second.getMCDwarfFiles().empty() || Table.second.getLabel())
543 return true;
544 return false;
545530 }
546531
547532 unsigned getDwarfCompileUnitID() { return DwarfCompileUnitID; }
461461 BeginSymName);
462462 }
463463
464 MCSectionCOFF *MCContext::getCOFFSection(StringRef Section) {
465 COFFSectionKey T{Section, "", 0, GenericSectionID};
466 auto Iter = COFFUniquingMap.find(T);
467 if (Iter == COFFUniquingMap.end())
468 return nullptr;
469 return Iter->second;
470 }
471
472464 MCSectionCOFF *MCContext::getAssociativeCOFFSection(MCSectionCOFF *Sec,
473465 const MCSymbol *KeySym,
474466 unsigned UniqueID) {