summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFDebugLine.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-08-30 07:49:50 +0000
committerAlexey Samsonov <samsonov@google.com>2012-08-30 07:49:50 +0000
commit45be793e3ad08129a38db307b3110e3a57149e40 (patch)
treea43353324273838648f619cc7028d2828998e785 /llvm/lib/DebugInfo/DWARFDebugLine.h
parent2da13f9ef8d49bfaca065bd78ff1f2e139c2422f (diff)
downloadbcm5719-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.h8
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;
OpenPOWER on IntegriCloud