[all-commits] [llvm/llvm-project] 0d7178: [DebugInfo]: Allow DwarfCompileUnit to have line t...
Sourabh Singh Tomar via All-commits
all-commits at lists.llvm.org
Sun Apr 5 11:49:09 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 0d71782f4e29784873080571f7aebd5bdd163f3f
https://github.com/llvm/llvm-project/commit/0d71782f4e29784873080571f7aebd5bdd163f3f
Author: Sourabh Singh Tomar <SourabhSingh.Tomar at amd.com>
Date: 2020-04-06 (Mon, 06 Apr 2020)
Changed paths:
M llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
M llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
Log Message:
-----------
[DebugInfo]: Allow DwarfCompileUnit to have line table symbol
Previously line table symbol was represented as `DIE::value_iterator`
inside `DwarfCompileUnit` and subsequent function `intStmtList`
was used to create a local `MCSymbol` to initialize it.
This patch removes `DIE::value_iterator` from `DwarfCompileUnit`
and intoduce `MCSymbol` for representing this units symbol for
`debug_line` section. As a result `applyStmtList` is also modified
to utilize this. Further more a helper function `getLineTableStartSym`
is also introduced to get this symbol, this would be used by clients
which need to access this line table, i.e `debug_macro`.
Reviewed By: dblaikie
Differential Revision: https://reviews.llvm.org/D77489
More information about the All-commits
mailing list