diff options
author | Eric Christopher <echristo@gmail.com> | 2013-07-03 22:40:18 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-07-03 22:40:18 +0000 |
commit | 0d0782ae9325033176d1a9fc0912217b5c580cb5 (patch) | |
tree | 05114c5fc0a86ada3b76371455f05f8f67659262 /lib/CodeGen/AsmPrinter/DwarfDebug.h | |
parent | 8e2e5ff0240dfb90c6dbc93e7fc441f71bfde400 (diff) | |
download | llvm-0d0782ae9325033176d1a9fc0912217b5c580cb5.tar.gz llvm-0d0782ae9325033176d1a9fc0912217b5c580cb5.tar.bz2 llvm-0d0782ae9325033176d1a9fc0912217b5c580cb5.tar.xz |
Make DotDebugLocEntry a class, reorder the members along with comments
for them and update all uses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185588 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.h b/lib/CodeGen/AsmPrinter/DwarfDebug.h index a06a3b4195..2d2467a0d2 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -62,12 +62,12 @@ public: /// \brief This struct describes location entries emitted in the .debug_loc /// section. -typedef struct DotDebugLocEntry { +class DotDebugLocEntry { + // Begin and end symbols for the address range that this location is valid. const MCSymbol *Begin; const MCSymbol *End; - MachineLocation Loc; - const MDNode *Variable; - bool Merged; + + // Type of entry that this represents. enum EntryType { E_Location, E_Integer, @@ -81,6 +81,17 @@ typedef struct DotDebugLocEntry { const ConstantFP *CFP; const ConstantInt *CIP; } Constants; + + // The location in the machine frame. + MachineLocation Loc; + + // The variable to which this location entry corresponds. + const MDNode *Variable; + + // Whether this location has been merged. + bool Merged; + +public: DotDebugLocEntry() : Begin(0), End(0), Variable(0), Merged(false) { Constants.Int = 0; } @@ -124,7 +135,11 @@ typedef struct DotDebugLocEntry { int64_t getInt() const { return Constants.Int; } const ConstantFP *getConstantFP() const { return Constants.CFP; } const ConstantInt *getConstantInt() const { return Constants.CIP; } -} DotDebugLocEntry; + const MDNode *getVariable() const { return Variable; } + const MCSymbol *getBeginSym() const { return Begin; } + const MCSymbol *getEndSym() const { return End; } + MachineLocation getLoc() const { return Loc; } +}; //===----------------------------------------------------------------------===// /// \brief This class is used to track local variable information. |