diff options
author | Hsiangkai Wang <hsiangkai@gmail.com> | 2018-09-06 02:22:06 +0000 |
---|---|---|
committer | Hsiangkai Wang <hsiangkai@gmail.com> | 2018-09-06 02:22:06 +0000 |
commit | 760c1ab19971dfb663c74b27734b481148d49696 (patch) | |
tree | 458f62d2d267c4b9557651e012a3246534096baa /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | |
parent | 5a53760f6504d7da6bb0419b7646d8cff208ebe4 (diff) | |
download | bcm5719-llvm-760c1ab19971dfb663c74b27734b481148d49696.tar.gz bcm5719-llvm-760c1ab19971dfb663c74b27734b481148d49696.zip |
[DebugInfo] Do not generate label debug info if it has been processed.
In DwarfDebug::collectEntityInfo(), if the label entity is processed in
DbgLabels list, it means the label is not optimized out. There is no
need to generate debug info for it with null position.
llvm-svn: 341513
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index ab67c43f6f2..9bf1ce18b3a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -216,7 +216,7 @@ public: void finishEntityDefinition(const DbgEntity *Entity); /// Find abstract variable associated with Var. - using InlinedVariable = DbgValueHistoryMap::InlinedVariable; + using InlinedEntity = DbgValueHistoryMap::InlinedEntity; DbgEntity *getExistingAbstractEntity(const DINode *Node); void createAbstractEntity(const DINode *Node, LexicalScope *Scope); |