summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFDebugLine.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-07-19 07:03:58 +0000
committerAlexey Samsonov <samsonov@google.com>2012-07-19 07:03:58 +0000
commite16e16add65a5d69aed5bde903c0a461bd15fad4 (patch)
tree643f37863b25e864aba09568cc87ee9f58aaa658 /llvm/lib/DebugInfo/DWARFDebugLine.h
parent6080d3219472425af1f37559a9473856a2b08312 (diff)
downloadbcm5719-llvm-e16e16add65a5d69aed5bde903c0a461bd15fad4.tar.gz
bcm5719-llvm-e16e16add65a5d69aed5bde903c0a461bd15fad4.zip
DebugInfo library: add support for fetching absolute paths to source files
(instead of basenames) from DWARF. Use this behavior in llvm-dwarfdump tool. Reviewed by Benjamin Kramer. llvm-svn: 160496
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugLine.h')
-rw-r--r--llvm/lib/DebugInfo/DWARFDebugLine.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/DebugInfo/DWARFDebugLine.h b/llvm/lib/DebugInfo/DWARFDebugLine.h
index bc6a70b1112..a8c0669b738 100644
--- a/llvm/lib/DebugInfo/DWARFDebugLine.h
+++ b/llvm/lib/DebugInfo/DWARFDebugLine.h
@@ -12,7 +12,6 @@
#include "llvm/Support/DataExtractor.h"
#include <map>
-#include <string>
#include <vector>
namespace llvm {
@@ -22,9 +21,9 @@ class raw_ostream;
class DWARFDebugLine {
public:
struct FileNameEntry {
- FileNameEntry() : DirIdx(0), ModTime(0), Length(0) {}
+ FileNameEntry() : Name(0), DirIdx(0), ModTime(0), Length(0) {}
- std::string Name;
+ const char *Name;
uint64_t DirIdx;
uint64_t ModTime;
uint64_t Length;
@@ -56,7 +55,7 @@ public:
// The number assigned to the first special opcode.
uint8_t OpcodeBase;
std::vector<uint8_t> StandardOpcodeLengths;
- std::vector<std::string> IncludeDirectories;
+ std::vector<const char*> IncludeDirectories;
std::vector<FileNameEntry> FileNames;
// Length of the prologue in bytes.
OpenPOWER on IntegriCloud