Skip to content

Commit

Permalink
Group debugging info representation and serialization code.
Browse files Browse the repository at this point in the history
Summary:
Moved the classes related to representing and serializing DWARF entities into a single
header, DebugData.h.

(cherry picked from FBD3153279)
  • Loading branch information
Gabriel Poesia authored and maksfb committed Apr 7, 2016
1 parent f6c8929 commit ad344c4
Show file tree
Hide file tree
Showing 20 changed files with 668 additions and 925 deletions.
76 changes: 0 additions & 76 deletions bolt/AddressRangesDWARFObject.h

This file was deleted.

96 changes: 0 additions & 96 deletions bolt/BasicBlockOffsetRanges.cpp

This file was deleted.

70 changes: 0 additions & 70 deletions bolt/BasicBlockOffsetRanges.h

This file was deleted.

9 changes: 4 additions & 5 deletions bolt/BinaryContext.h
Expand Up @@ -14,8 +14,7 @@
#ifndef LLVM_TOOLS_LLVM_BOLT_BINARY_CONTEXT_H
#define LLVM_TOOLS_LLVM_BOLT_BINARY_CONTEXT_H

#include "AddressRangesDWARFObject.h"
#include "LocationList.h"
#include "DebugData.h"
#include "llvm/ADT/Triple.h"
#include "llvm/DebugInfo/DWARF/DWARFCompileUnit.h"
#include "llvm/DebugInfo/DWARF/DWARFContext.h"
Expand Down Expand Up @@ -75,14 +74,14 @@ class BinaryContext {
/// Maps DWARF CUID to offset of stmt_list attribute in .debug_info.
std::map<unsigned, uint32_t> LineTableOffsetCUMap;

/// List of DWARF location lists in .debug_loc.
std::vector<LocationList> LocationLists;

/// List of DWARF entries in .debug_info that have address ranges to be
/// updated. These include lexical blocks (DW_TAG_lexical_block) and concrete
/// instances of inlined subroutines (DW_TAG_inlined_subroutine).
std::vector<AddressRangesDWARFObject> AddressRangesObjects;

/// List of DWARF location lists in .debug_loc.
std::vector<LocationList> LocationLists;

using DIECompileUnitVector =
std::vector<std::pair<const DWARFDebugInfoEntryMinimal *,
const DWARFCompileUnit *>> ;
Expand Down
1 change: 0 additions & 1 deletion bolt/BinaryFunction.cpp
Expand Up @@ -13,7 +13,6 @@
#include "BinaryBasicBlock.h"
#include "BinaryFunction.h"
#include "DataReader.h"
#include "DebugLineTableRowRef.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/DebugInfo/DWARF/DWARFContext.h"
#include "llvm/MC/MCAsmInfo.h"
Expand Down
2 changes: 1 addition & 1 deletion bolt/BinaryFunction.h
Expand Up @@ -19,7 +19,7 @@

#include "BinaryBasicBlock.h"
#include "BinaryContext.h"
#include "DebugRangesSectionsWriter.h"
#include "DebugData.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/ilist.h"
#include "llvm/MC/MCCodeEmitter.h"
Expand Down
109 changes: 0 additions & 109 deletions bolt/BinaryPatcher.cpp

This file was deleted.

0 comments on commit ad344c4

Please sign in to comment.