From a588917c3b761f89bafdd29723032a8c657e7142 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 12 Apr 2019 03:49:13 +0000 Subject: [PATCH] Move a couple of optional references to just optional to make the forwarding APIs look similar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358250 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCDwarf.h | 4 ++-- lib/MC/MCDwarf.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/llvm/MC/MCDwarf.h b/include/llvm/MC/MCDwarf.h index 5b972109eb4..63040cb194e 100644 --- a/include/llvm/MC/MCDwarf.h +++ b/include/llvm/MC/MCDwarf.h @@ -224,7 +224,7 @@ public: Expected tryGetFile(StringRef &Directory, StringRef &FileName, Optional Checksum, - Optional &Source, + Optional Source, unsigned FileNumber = 0); std::pair Emit(MCStreamer *MCOS, MCDwarfLineTableParams Params, @@ -293,7 +293,7 @@ public: Optional Source, unsigned FileNumber = 0); unsigned getFile(StringRef &Directory, StringRef &FileName, - Optional Checksum, Optional &Source, + Optional Checksum, Optional Source, unsigned FileNumber = 0) { return cantFail(tryGetFile(Directory, FileName, Checksum, Source, FileNumber)); diff --git a/lib/MC/MCDwarf.cpp b/lib/MC/MCDwarf.cpp index ebc45f4c427..a95d97b70d9 100644 --- a/lib/MC/MCDwarf.cpp +++ b/lib/MC/MCDwarf.cpp @@ -546,7 +546,7 @@ Expected MCDwarfLineTableHeader::tryGetFile(StringRef &Directory, StringRef &FileName, Optional Checksum, - Optional &Source, + Optional Source, unsigned FileNumber) { if (Directory == CompilationDir) Directory = ""; -- 2.40.0