diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-10-15 17:16:32 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-10-15 17:16:32 +0000 |
commit | 7fa42c8a8c0eea076a3f114ee7e2f4b1cc4ddd16 (patch) | |
tree | e960634edf5a471935ad7d47e60c9fbbca56cd1c /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | d9189ceb23bde1758cc2fa5dd3497679e5fab3dc (diff) | |
download | bcm5719-llvm-7fa42c8a8c0eea076a3f114ee7e2f4b1cc4ddd16.tar.gz bcm5719-llvm-7fa42c8a8c0eea076a3f114ee7e2f4b1cc4ddd16.zip |
[AsmPrinter] Prune dead code. NFC.
I left all (dead) print and dump methods in place.
llvm-svn: 250433
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 5ceafde575d..b037a162cf1 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -214,7 +214,6 @@ static LLVM_CONSTEXPR DwarfAccelTable::Atom TypeAtoms[] = { DwarfDebug::DwarfDebug(AsmPrinter *A, Module *M) : Asm(A), MMI(Asm->MMI), DebugLocs(A->OutStreamer->isVerboseAsm()), PrevLabel(nullptr), InfoHolder(A, "info_string", DIEValueAllocator), - UsedNonDefaultText(false), SkeletonHolder(A, "skel_string", DIEValueAllocator), IsDarwin(Triple(A->getTargetTriple()).isOSDarwin()), AccelNames(DwarfAccelTable::Atom(dwarf::DW_ATOM_die_offset, @@ -343,18 +342,6 @@ void DwarfDebug::addSubprogramNames(const DISubprogram *SP, DIE &Die) { } } -/// isSubprogramContext - Return true if Context is either a subprogram -/// or another context nested inside a subprogram. -bool DwarfDebug::isSubprogramContext(const MDNode *Context) { - if (!Context) - return false; - if (isa<DISubprogram>(Context)) - return true; - if (auto *T = dyn_cast<DIType>(Context)) - return isSubprogramContext(resolve(T->getScope())); - return false; -} - /// Check whether we should create a DIE for the given Scope, return true /// if we don't create a DIE (the corresponding DIE is null). bool DwarfDebug::isLexicalScopeDIENull(LexicalScope *Scope) { |