diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-15 20:43:22 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-15 20:43:22 +0000 |
commit | 101b1c5ff16dffd45d03746d92c024740f72ecc6 (patch) | |
tree | ce0a3736eabcea8dd244494e4b2ac13b4c03d420 /lib/DebugInfo/DWARFDebugLine.cpp | |
parent | c26ed9b47ff77ca6244feda9e3837b49624605db (diff) | |
download | llvm-101b1c5ff16dffd45d03746d92c024740f72ecc6.tar.gz llvm-101b1c5ff16dffd45d03746d92c024740f72ecc6.tar.bz2 llvm-101b1c5ff16dffd45d03746d92c024740f72ecc6.tar.xz |
DWARF: Put all the pieces we have together and provide a single accessor to DIContext that provides line information when given an address.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFDebugLine.cpp')
-rw-r--r-- | lib/DebugInfo/DWARFDebugLine.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/DebugInfo/DWARFDebugLine.cpp b/lib/DebugInfo/DWARFDebugLine.cpp index 941d8813d5..94fff6533e 100644 --- a/lib/DebugInfo/DWARFDebugLine.cpp +++ b/lib/DebugInfo/DWARFDebugLine.cpp @@ -122,7 +122,9 @@ DWARFDebugLine::getOrParseLineTable(DataExtractor debug_line_data, State state; if (!parseStatementTable(debug_line_data, &offset, state)) return 0; - pos->second = state; + // FIXME: double lookup. + LineTableMap[offset] = state; + return &LineTableMap[offset]; } return &pos->second; } |