diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-07-02 05:54:45 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-07-02 05:54:45 +0000 |
commit | f4462fa3ca8c709b46604bcbcdc2641c23c078b7 (patch) | |
tree | bc51d87c935ba7216a6ef85fa84b62d06ae3d43b /llvm/lib/DebugInfo/DWARFDebugInfoEntry.h | |
parent | 03afad8f1e750dad3d1241f511429f4337cf8282 (diff) | |
download | bcm5719-llvm-f4462fa3ca8c709b46604bcbcdc2641c23c078b7.tar.gz bcm5719-llvm-f4462fa3ca8c709b46604bcbcdc2641c23c078b7.zip |
This patch extends the libLLVMDebugInfo which contains a minimalistic DWARF parser:
1) DIContext is now able to return function name for a given instruction address (besides file/line info).
2) llvm-dwarfdump accepts flag --functions that prints the function name (if address is specified by --address flag).
3) test case that checks the basic functionality of llvm-dwarfdump added
llvm-svn: 159512
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugInfoEntry.h')
-rw-r--r-- | llvm/lib/DebugInfo/DWARFDebugInfoEntry.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/DWARFDebugInfoEntry.h b/llvm/lib/DebugInfo/DWARFDebugInfoEntry.h index 37b3bcdd96e..1a040a53a38 100644 --- a/llvm/lib/DebugInfo/DWARFDebugInfoEntry.h +++ b/llvm/lib/DebugInfo/DWARFDebugInfoEntry.h @@ -128,6 +128,13 @@ public: void buildAddressRangeTable(const DWARFCompileUnit *cu, DWARFDebugAranges *debug_aranges) const; + + bool addressRangeContainsAddress(const DWARFCompileUnit *cu, + const uint64_t address) const; + + // If a DIE represents a subroutine, returns its mangled name + // (or short name, if mangled is missing). Otherwise returns null. + const char* getSubprogramName(const DWARFCompileUnit *cu) const; }; } |