summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2019-04-12 03:49:13 +0000
committerEric Christopher <echristo@gmail.com>2019-04-12 03:49:13 +0000
commit06bfe353febb3da09b43c740cda396b4ef84edef (patch)
tree0447616696bc5b14ff31beb8271ff374ebd32392
parent35861f216b99a7f6f11988445e2f1eaf3ad74289 (diff)
downloadbcm5719-llvm-06bfe353febb3da09b43c740cda396b4ef84edef.tar.gz
bcm5719-llvm-06bfe353febb3da09b43c740cda396b4ef84edef.zip
Move a couple of optional references to just optional to make the
forwarding APIs look similar. llvm-svn: 358250
-rw-r--r--llvm/include/llvm/MC/MCDwarf.h4
-rw-r--r--llvm/lib/MC/MCDwarf.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/MC/MCDwarf.h b/llvm/include/llvm/MC/MCDwarf.h
index 5b972109eb4..63040cb194e 100644
--- a/llvm/include/llvm/MC/MCDwarf.h
+++ b/llvm/include/llvm/MC/MCDwarf.h
@@ -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));
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp
index ebc45f4c427..a95d97b70d9 100644
--- a/llvm/lib/MC/MCDwarf.cpp
+++ b/llvm/lib/MC/MCDwarf.cpp
@@ -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 = "";
OpenPOWER on IntegriCloud