diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-08-30 07:49:50 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-08-30 07:49:50 +0000 |
commit | 45be793e3ad08129a38db307b3110e3a57149e40 (patch) | |
tree | a43353324273838648f619cc7028d2828998e785 /llvm/lib/DebugInfo/DWARFDebugLine.h | |
parent | 2da13f9ef8d49bfaca065bd78ff1f2e139c2422f (diff) | |
download | bcm5719-llvm-45be793e3ad08129a38db307b3110e3a57149e40.tar.gz bcm5719-llvm-45be793e3ad08129a38db307b3110e3a57149e40.zip |
Refactor fetching file/line info from DWARFContext to simplify the
code and allow better code reuse. Make the code a bit more conforming
to LLVM code style.
No functionality change.
llvm-svn: 162895
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugLine.h')
-rw-r--r-- | llvm/lib/DebugInfo/DWARFDebugLine.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/DWARFDebugLine.h b/llvm/lib/DebugInfo/DWARFDebugLine.h index 6382b45a93a..586dd7e8784 100644 --- a/llvm/lib/DebugInfo/DWARFDebugLine.h +++ b/llvm/lib/DebugInfo/DWARFDebugLine.h @@ -12,6 +12,7 @@ #include "llvm/Support/DataExtractor.h" #include <map> +#include <string> #include <vector> namespace llvm { @@ -174,6 +175,13 @@ public: // Returns the index of the row with file/line info for a given address, // or -1 if there is no such row. uint32_t lookupAddress(uint64_t address) const; + + // Extracts filename by its index in filename table in prologue. + // Returns true on success. + bool getFileNameByIndex(uint64_t FileIndex, + bool NeedsAbsoluteFilePath, + std::string &Result) const; + void dump(raw_ostream &OS) const; struct Prologue Prologue; |