forked from OSchip/llvm-project
[BOLT] Fix after DebugInfoMetadata change 0ca43d4488
This commit is contained in:
parent
faa1338ccd
commit
ea47ccc78f
|
@ -284,8 +284,8 @@ public:
|
|||
Expected<unsigned> getDwarfFile(StringRef Directory, StringRef FileName,
|
||||
unsigned FileNumber,
|
||||
Optional<MD5::MD5Result> Checksum,
|
||||
Optional<StringRef> Source, unsigned CUID,
|
||||
unsigned DWARFVersion);
|
||||
std::optional<StringRef> Source,
|
||||
unsigned CUID, unsigned DWARFVersion);
|
||||
|
||||
/// [start memory address] -> [segment info] mapping.
|
||||
std::map<uint64_t, SegmentInfo> SegmentMapInfo;
|
||||
|
|
|
@ -1134,7 +1134,7 @@ public:
|
|||
|
||||
Expected<unsigned> tryGetFile(StringRef &Directory, StringRef &FileName,
|
||||
Optional<MD5::MD5Result> Checksum,
|
||||
Optional<StringRef> Source,
|
||||
std::optional<StringRef> Source,
|
||||
uint16_t DwarfVersion,
|
||||
unsigned FileNumber = 0) {
|
||||
assert(RawData.empty() && "cannot use with raw data");
|
||||
|
@ -1151,7 +1151,7 @@ public:
|
|||
/// optional \p Source.
|
||||
void setRootFile(StringRef Directory, StringRef FileName,
|
||||
Optional<MD5::MD5Result> Checksum,
|
||||
Optional<StringRef> Source) {
|
||||
std::optional<StringRef> Source) {
|
||||
Header.setRootFile(Directory, FileName, Checksum, Source);
|
||||
}
|
||||
|
||||
|
|
|
@ -1461,7 +1461,7 @@ void BinaryContext::printGlobalSymbols(raw_ostream &OS) const {
|
|||
|
||||
Expected<unsigned> BinaryContext::getDwarfFile(
|
||||
StringRef Directory, StringRef FileName, unsigned FileNumber,
|
||||
Optional<MD5::MD5Result> Checksum, Optional<StringRef> Source,
|
||||
Optional<MD5::MD5Result> Checksum, std::optional<StringRef> Source,
|
||||
unsigned CUID, unsigned DWARFVersion) {
|
||||
DwarfLineTable &Table = DwarfLineTablesCUMap[CUID];
|
||||
return Table.tryGetFile(Directory, FileName, Checksum, Source, DWARFVersion,
|
||||
|
|
Loading…
Reference in New Issue