diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-10-04 16:24:00 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-10-04 16:24:00 +0000 |
commit | cda2aa823ede9f83577dc90c77063e87ab2debd3 (patch) | |
tree | eef8d105417c322a48c15aa5ee64bdb493660db9 /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | |
parent | 8945219dc9babda210188e828d5ac3600a830c09 (diff) | |
download | bcm5719-llvm-cda2aa823ede9f83577dc90c77063e87ab2debd3.tar.gz bcm5719-llvm-cda2aa823ede9f83577dc90c77063e87ab2debd3.zip |
Sink DwarfDebug::updateSubprogramScopeDIE into DwarfCompileUnit
This requires exposing some of the current function state from
DwarfDebug. I hope there's not too much of that to expose as I go
through all the functions, but it still seems nicer to expose singular
data down to multiple consumers, than have consumers expose raw mapping
data structures up to DwarfDebug for building subprograms.
Part of a series of refactoring to allow subprograms in both the
skeleton and dwo CUs under Fission.
llvm-svn: 219060
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 85fa6c0b5b8..a98ab26cc0f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -62,6 +62,12 @@ public: void addRange(RangeSpan Range); void attachLowHighPC(DIE &D, const MCSymbol *Begin, const MCSymbol *End); + + /// \brief Find DIE for the given subprogram and attach appropriate + /// DW_AT_low_pc and DW_AT_high_pc attributes. If there are global + /// variables in this scope then create and insert DIEs for these + /// variables. + DIE &updateSubprogramScopeDIE(DISubprogram SP); }; } // end llvm namespace |