Move a couple of optional references to just optional to make the

forwarding APIs look similar.

llvm-svn: 358250
This commit is contained in:
Eric Christopher 2019-04-12 03:49:13 +00:00
parent eeeef3af2c
commit 5e5111db83
2 changed files with 3 additions and 3 deletions

View File

@ -224,7 +224,7 @@ public:
Expected<unsigned> tryGetFile(StringRef &Directory, StringRef &FileName,
Optional<MD5::MD5Result> Checksum,
Optional<StringRef> &Source,
Optional<StringRef> Source,
unsigned FileNumber = 0);
std::pair<MCSymbol *, MCSymbol *>
Emit(MCStreamer *MCOS, MCDwarfLineTableParams Params,
@ -293,7 +293,7 @@ public:
Optional<StringRef> Source,
unsigned FileNumber = 0);
unsigned getFile(StringRef &Directory, StringRef &FileName,
Optional<MD5::MD5Result> Checksum, Optional<StringRef> &Source,
Optional<MD5::MD5Result> Checksum, Optional<StringRef> Source,
unsigned FileNumber = 0) {
return cantFail(tryGetFile(Directory, FileName, Checksum, Source,
FileNumber));

View File

@ -546,7 +546,7 @@ Expected<unsigned>
MCDwarfLineTableHeader::tryGetFile(StringRef &Directory,
StringRef &FileName,
Optional<MD5::MD5Result> Checksum,
Optional<StringRef> &Source,
Optional<StringRef> Source,
unsigned FileNumber) {
if (Directory == CompilationDir)
Directory = "";