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 | 38a6381c0a58e013577b1957199128af9573fc20 (patch) | |
tree | eda917ad63ee09b89edcc3cc26117de8dd0f71e6 /lib/DebugInfo/DWARFDebugLine.h | |
parent | 6b1e1d8b3d8d5a1b299d3c2897db9bf122b02c00 (diff) | |
download | llvm-38a6381c0a58e013577b1957199128af9573fc20.tar.gz llvm-38a6381c0a58e013577b1957199128af9573fc20.tar.bz2 llvm-38a6381c0a58e013577b1957199128af9573fc20.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFDebugLine.h')
-rw-r--r-- | lib/DebugInfo/DWARFDebugLine.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/DebugInfo/DWARFDebugLine.h b/lib/DebugInfo/DWARFDebugLine.h index 6382b45a93..586dd7e878 100644 --- a/lib/DebugInfo/DWARFDebugLine.h +++ b/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; |