summaryrefslogtreecommitdiff
path: root/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
commit71d94f805514f28730bf39143ee227648d521d09 (patch)
tree2c1f82b94b4c75f9736128b9734872d03a9ec0fc /lib/DebugInfo/DWARFDebugLine.h
parent72ea0c9ffaa1700730c8ce36e9b73aef4b914988 (diff)
downloadllvm-71d94f805514f28730bf39143ee227648d521d09.tar.gz
llvm-71d94f805514f28730bf39143ee227648d521d09.tar.bz2
llvm-71d94f805514f28730bf39143ee227648d521d09.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160496 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFDebugLine.h')
-rw-r--r--lib/DebugInfo/DWARFDebugLine.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/DebugInfo/DWARFDebugLine.h b/lib/DebugInfo/DWARFDebugLine.h
index bc6a70b111..a8c0669b73 100644
--- a/lib/DebugInfo/DWARFDebugLine.h
+++ b/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.