summaryrefslogtreecommitdiff
path: root/lib/DebugInfo/DWARFDebugLine.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-09-15 20:43:18 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-09-15 20:43:18 +0000
commitc26ed9b47ff77ca6244feda9e3837b49624605db (patch)
tree85ca519ec4b793cfdfe44275827433ce178d4f36 /lib/DebugInfo/DWARFDebugLine.h
parentaba8015cc375ac7de757d92e55d1aad986de6202 (diff)
downloadllvm-c26ed9b47ff77ca6244feda9e3837b49624605db.tar.gz
llvm-c26ed9b47ff77ca6244feda9e3837b49624605db.tar.bz2
llvm-c26ed9b47ff77ca6244feda9e3837b49624605db.tar.xz
DWARF: Remove accessors that parse the whole line table section in one go, this can't possibly work.
The address size is specified by the compile unit associated with a line table, there is no global address size. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFDebugLine.h')
-rw-r--r--lib/DebugInfo/DWARFDebugLine.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/DebugInfo/DWARFDebugLine.h b/lib/DebugInfo/DWARFDebugLine.h
index e50c4a9e74..bc6a70b111 100644
--- a/lib/DebugInfo/DWARFDebugLine.h
+++ b/lib/DebugInfo/DWARFDebugLine.h
@@ -147,7 +147,7 @@ public:
DoneParsingLineTable = -1
};
- State() : row(0) {}
+ State() : row(StartParsingLineTable) {}
virtual ~State();
virtual void appendRowToMatrix(uint32_t offset);
@@ -173,15 +173,9 @@ public:
static bool parseStatementTable(DataExtractor debug_line_data,
uint32_t *offset_ptr, State &state);
- /// Parse all information in the debug_line_data into an internal
- /// representation.
- void parse(DataExtractor debug_line_data);
- void parseIfNeeded(DataExtractor debug_line_data) {
- if (LineTableMap.empty())
- parse(debug_line_data);
- }
- static void dump(DataExtractor debug_line_data, raw_ostream &OS);
const LineTable *getLineTable(uint32_t offset) const;
+ const LineTable *getOrParseLineTable(DataExtractor debug_line_data,
+ uint32_t offset);
private:
typedef std::map<uint32_t, LineTable> LineTableMapTy;