mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
[dsymutil] Handle the -oso-prepend-path option when the input is a YAML debug map
All the tests using a YAML debug map will need this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239163 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -243,13 +243,13 @@ void MachODebugMapParser::loadMainBinarySymbols() {
|
||||
}
|
||||
|
||||
ErrorOr<std::unique_ptr<DebugMap>>
|
||||
parseYAMLDebugMap(StringRef InputFile, bool Verbose) {
|
||||
parseYAMLDebugMap(StringRef InputFile, StringRef PrependPath, bool Verbose) {
|
||||
auto ErrOrFile = MemoryBuffer::getFileOrSTDIN(InputFile);
|
||||
if (auto Err =ErrOrFile.getError())
|
||||
return Err;
|
||||
|
||||
std::unique_ptr<DebugMap> Res;
|
||||
yaml::Input yin((*ErrOrFile)->getBuffer());
|
||||
yaml::Input yin((*ErrOrFile)->getBuffer(), &PrependPath);
|
||||
yin >> Res;
|
||||
|
||||
if (auto EC = yin.error())
|
||||
@@ -266,7 +266,7 @@ parseDebugMap(StringRef InputFile, StringRef PrependPath, bool Verbose, bool Inp
|
||||
MachODebugMapParser Parser(InputFile, PrependPath, Verbose);
|
||||
return Parser.parse();
|
||||
} else {
|
||||
return parseYAMLDebugMap(InputFile, Verbose);
|
||||
return parseYAMLDebugMap(InputFile, PrependPath, Verbose);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user