summaryrefslogtreecommitdiff
path: root/lib/DebugInfo/DWARFDebugLine.h
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2013-01-26 00:28:05 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2013-01-26 00:28:05 +0000
commite27a787760ea7c2899da3287002fe8ba316df0d0 (patch)
tree32795882c6c610b3f5157afc05c4b7456f17bb3b /lib/DebugInfo/DWARFDebugLine.h
parent32a57958226e369f964a034da2ce7083a1a34297 (diff)
downloadllvm-e27a787760ea7c2899da3287002fe8ba316df0d0.tar.gz
llvm-e27a787760ea7c2899da3287002fe8ba316df0d0.tar.bz2
llvm-e27a787760ea7c2899da3287002fe8ba316df0d0.tar.xz
Add DIContext::getLineInfoForAddressRange() function and test. This function allows a caller to obtain a table of line information for a function using the function's address and size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFDebugLine.h')
-rw-r--r--lib/DebugInfo/DWARFDebugLine.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/DebugInfo/DWARFDebugLine.h b/lib/DebugInfo/DWARFDebugLine.h
index dbaf91d321..2990756bd7 100644
--- a/lib/DebugInfo/DWARFDebugLine.h
+++ b/lib/DebugInfo/DWARFDebugLine.h
@@ -178,6 +178,10 @@ public:
// or -1 if there is no such row.
uint32_t lookupAddress(uint64_t address) const;
+ bool lookupAddressRange(uint64_t address,
+ uint64_t size,
+ std::vector<uint32_t>& result) const;
+
// Extracts filename by its index in filename table in prologue.
// Returns true on success.
bool getFileNameByIndex(uint64_t FileIndex,