diff options
| author | Alexey Samsonov <samsonov@google.com> | 2012-08-27 07:17:47 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2012-08-27 07:17:47 +0000 |
| commit | 034e57a29706a0d179cd0dc477622cb5ba9ea193 (patch) | |
| tree | 76a9b23f8de160f063513a5a8b7833689e15978e /llvm/lib/DebugInfo/DIContext.cpp | |
| parent | 6d44554cd471766286034ab560a2578ce5175c2f (diff) | |
| download | bcm5719-llvm-034e57a29706a0d179cd0dc477622cb5ba9ea193.tar.gz bcm5719-llvm-034e57a29706a0d179cd0dc477622cb5ba9ea193.zip | |
Add basic support for .debug_ranges section to LLVM's DebugInfo library.
This section (introduced in DWARF-3) is used to define instruction address
ranges for functions that are not contiguous and can't be described
by low_pc/high_pc attributes (this is the usual case for inlined subroutines).
The patch is the first step to support fetching complete inlining info from DWARF.
Reviewed by Benjamin Kramer.
llvm-svn: 162657
Diffstat (limited to 'llvm/lib/DebugInfo/DIContext.cpp')
| -rw-r--r-- | llvm/lib/DebugInfo/DIContext.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DIContext.cpp b/llvm/lib/DebugInfo/DIContext.cpp index e2fd55fd6ef..ead57f97159 100644 --- a/llvm/lib/DebugInfo/DIContext.cpp +++ b/llvm/lib/DebugInfo/DIContext.cpp @@ -18,7 +18,9 @@ DIContext *DIContext::getDWARFContext(bool isLittleEndian, StringRef abbrevSection, StringRef aRangeSection, StringRef lineSection, - StringRef stringSection) { + StringRef stringSection, + StringRef rangeSection) { return new DWARFContextInMemory(isLittleEndian, infoSection, abbrevSection, - aRangeSection, lineSection, stringSection); + aRangeSection, lineSection, stringSection, + rangeSection); } |

