Skip to content

Commit c813d7d

Browse files
author
Kyle Krueger
committed
move DebugMap ctor to .cpp file
1 parent bc927ce commit c813d7d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

llvm/tools/dsymutil/DebugMap.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ struct YAMLContext {
135135

136136
} // end anonymous namespace
137137

138+
DebugMap::DebugMap(const Triple &BinaryTriple, StringRef BinaryPath,
139+
ArrayRef<uint8_t> BinaryUUID)
140+
: BinaryTriple(BinaryTriple), BinaryPath(std::string(BinaryPath)),
141+
BinaryUUID(BinaryUUID.begin(), BinaryUUID.end()) {}
142+
138143
ErrorOr<std::vector<std::unique_ptr<DebugMap>>>
139144
DebugMap::parseYAMLDebugMap(BinaryHolder &BinHolder, StringRef InputFile,
140145
StringRef PrependPath, bool Verbose) {

llvm/tools/dsymutil/DebugMap.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ class DebugMap {
9191

9292
public:
9393
DebugMap(const Triple &BinaryTriple, StringRef BinaryPath,
94-
ArrayRef<uint8_t> BinaryUUID = ArrayRef<uint8_t>())
95-
: BinaryTriple(BinaryTriple), BinaryPath(std::string(BinaryPath)),
96-
BinaryUUID(BinaryUUID.begin(), BinaryUUID.end()) {}
94+
ArrayRef<uint8_t> BinaryUUID = ArrayRef<uint8_t>());
9795

9896
using const_iterator = ObjectContainer::const_iterator;
9997

0 commit comments

Comments
 (0)