diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:17:04 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:17:04 +0000 | 
| commit | b915e9e0fc85ba6f398b3fab0db6a81a8913af94 (patch) | |
| tree | 98b8f811c7aff2547cab8642daf372d6c59502fb /lib/CodeGen/AsmPrinter/DebugHandlerBase.h | |
| parent | 6421cca32f69ac849537a3cff78c352195e99f1b (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DebugHandlerBase.h')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/DebugHandlerBase.h | 18 | 
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/CodeGen/AsmPrinter/DebugHandlerBase.h b/lib/CodeGen/AsmPrinter/DebugHandlerBase.h index b8bbcec133fd..c00fa189d94a 100644 --- a/lib/CodeGen/AsmPrinter/DebugHandlerBase.h +++ b/lib/CodeGen/AsmPrinter/DebugHandlerBase.h @@ -38,10 +38,12 @@ protected:    MachineModuleInfo *MMI;    /// Previous instruction's location information. This is used to -  /// determine label location to indicate scope boundries in dwarf -  /// debug info. +  /// determine label location to indicate scope boundaries in debug info. +  /// We track the previous instruction's source location (if not line 0), +  /// whether it was a label, and its parent BB.    DebugLoc PrevInstLoc;    MCSymbol *PrevLabel = nullptr; +  const MachineBasicBlock *PrevInstBB = nullptr;    /// This location indicates end of function prologue and beginning of    /// function body. @@ -92,13 +94,13 @@ public:    /// Return Label immediately following the instruction.    MCSymbol *getLabelAfterInsn(const MachineInstr *MI); -  /// Determine the relative position of the pieces described by P1 and P2. -  /// Returns  -1 if P1 is entirely before P2, 0 if P1 and P2 overlap, -  /// 1 if P1 is entirely after P2. -  static int pieceCmp(const DIExpression *P1, const DIExpression *P2); +  /// Determine the relative position of the fragments described by P1 and P2. +  /// Returns -1 if P1 is entirely before P2, 0 if P1 and P2 overlap, 1 if P1 is +  /// entirely after P2. +  static int fragmentCmp(const DIExpression *P1, const DIExpression *P2); -  /// Determine whether two variable pieces overlap. -  static bool piecesOverlap(const DIExpression *P1, const DIExpression *P2); +  /// Determine whether two variable fragments overlap. +  static bool fragmentsOverlap(const DIExpression *P1, const DIExpression *P2);    /// If this type is derived from a base type then return base type size.    static uint64_t getBaseTypeSize(const DITypeRef TyRef);  | 
