diff options
author | Frederic Riss <friss@apple.com> | 2015-08-26 05:09:59 +0000 |
---|---|---|
committer | Frederic Riss <friss@apple.com> | 2015-08-26 05:09:59 +0000 |
commit | 2c69d36db1107bafabc5d139cb4314aeae36f150 (patch) | |
tree | 71aa46b6f10728f67a66d52eb62adf1d411be93a /llvm/tools/dsymutil/DebugMap.h | |
parent | 65e145ce9fef104808c150e95ce7da7ab626eacc (diff) | |
download | bcm5719-llvm-2c69d36db1107bafabc5d139cb4314aeae36f150.tar.gz bcm5719-llvm-2c69d36db1107bafabc5d139cb4314aeae36f150.zip |
[dsymutil] Store an optional BinaryPath in the debug map.
llvm-dsymutil needs to emit dSYM companion bundles. These are binary files
that replicate some of the orignal binary file properties (sections and
symbols). To get acces to these properties, pass the binary path in the
debug map.
llvm-svn: 246011
Diffstat (limited to 'llvm/tools/dsymutil/DebugMap.h')
-rw-r--r-- | llvm/tools/dsymutil/DebugMap.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/tools/dsymutil/DebugMap.h b/llvm/tools/dsymutil/DebugMap.h index 9bf20c6db31..06ac5a503dc 100644 --- a/llvm/tools/dsymutil/DebugMap.h +++ b/llvm/tools/dsymutil/DebugMap.h @@ -66,6 +66,7 @@ class DebugMapObject; /// } class DebugMap { Triple BinaryTriple; + std::string BinaryPath; typedef std::vector<std::unique_ptr<DebugMapObject>> ObjectContainer; ObjectContainer Objects; @@ -76,7 +77,8 @@ class DebugMap { DebugMap() = default; ///@} public: - DebugMap(const Triple &BinaryTriple) : BinaryTriple(BinaryTriple) {} + DebugMap(const Triple &BinaryTriple, StringRef BinaryPath) + : BinaryTriple(BinaryTriple), BinaryPath(BinaryPath) {} typedef ObjectContainer::const_iterator const_iterator; @@ -95,6 +97,8 @@ public: const Triple &getTriple() const { return BinaryTriple; } + StringRef getBinaryPath() const { return BinaryPath; } + void print(raw_ostream &OS) const; #ifndef NDEBUG |