diff options
author | Nikola Prica <nikola.prica@rt-rk.com> | 2019-06-13 10:23:26 +0000 |
---|---|---|
committer | Nikola Prica <nikola.prica@rt-rk.com> | 2019-06-13 10:23:26 +0000 |
commit | 076ae0d2e2f6cee455f49a131b32d14d457f603c (patch) | |
tree | 2728f79c588cafe7ef143634da0b1ee169305b4e /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | |
parent | 181bf0cefb261deae54c4292170491a2deb231d9 (diff) | |
download | bcm5719-llvm-076ae0d2e2f6cee455f49a131b32d14d457f603c.tar.gz bcm5719-llvm-076ae0d2e2f6cee455f49a131b32d14d457f603c.zip |
[DebugInfo] Move Value struct out of DebugLocEntry as DbgValueLoc (NFC)
Since the DebugLocEntry::Value is used as part of DwarfDebug and
DebugLocEntry make it as the separate class.
Reviewers: aprantl, dstenb
Reviewed By: aprantl
Differential Revision: https://reviews.llvm.org/D63213
llvm-svn: 363246
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index 2dfdda67d6b..012013901e6 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -118,7 +118,7 @@ class DbgVariable : public DbgEntity { /// Offset in DebugLocs. unsigned DebugLocListIndex = ~0u; /// Single value location description. - std::unique_ptr<DebugLocEntry::Value> ValueLoc = nullptr; + std::unique_ptr<DbgValueLoc> ValueLoc = nullptr; struct FrameIndexExpr { int FI; @@ -147,12 +147,12 @@ public: } // Initialize variable's location. - void initializeDbgValue(DebugLocEntry::Value Value) { + void initializeDbgValue(DbgValueLoc Value) { assert(FrameIndexExprs.empty() && "Already initialized?"); assert(!ValueLoc && "Already initialized?"); assert(!Value.getExpression()->isFragment() && "Fragments not supported."); - ValueLoc = llvm::make_unique<DebugLocEntry::Value>(Value); + ValueLoc = llvm::make_unique<DbgValueLoc>(Value); if (auto *E = ValueLoc->getExpression()) if (E->getNumElements()) FrameIndexExprs.push_back({0, E}); @@ -174,7 +174,7 @@ public: void setDebugLocListIndex(unsigned O) { DebugLocListIndex = O; } unsigned getDebugLocListIndex() const { return DebugLocListIndex; } StringRef getName() const { return getVariable()->getName(); } - const DebugLocEntry::Value *getValueLoc() const { return ValueLoc.get(); } + const DbgValueLoc *getValueLoc() const { return ValueLoc.get(); } /// Get the FI entries, sorted by fragment offset. ArrayRef<FrameIndexExpr> getFrameIndexExprs() const; bool hasFrameIndexExprs() const { return !FrameIndexExprs.empty(); } |