aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCStreamer.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2019-04-04 23:34:38 +0000
committerEric Christopher <echristo@gmail.com>2019-04-04 23:34:38 +0000
commit798e83b5d6853f0c2f68bb4b0785f6a075867a13 (patch)
tree0c99c3a0ed9d838eaea98716135299d9ac04ff7d /llvm/lib/MC/MCStreamer.cpp
parentf498bdcebfa439218e315be74a62ad52db3e2846 (diff)
downloadllvm-798e83b5d6853f0c2f68bb4b0785f6a075867a13.zip
llvm-798e83b5d6853f0c2f68bb4b0785f6a075867a13.tar.gz
llvm-798e83b5d6853f0c2f68bb4b0785f6a075867a13.tar.bz2
NFC: Move API uses of MD5::MD5Result to Optional rather than a pointer.
Differential Revision: https://reviews.llvm.org/D60290 llvm-svn: 357736
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCStreamer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp
index 2d615f2..20d360f 100644
--- a/llvm/lib/MC/MCStreamer.cpp
+++ b/llvm/lib/MC/MCStreamer.cpp
@@ -204,7 +204,7 @@ void MCStreamer::EmitZeros(uint64_t NumBytes) {
Expected<unsigned>
MCStreamer::tryEmitDwarfFileDirective(unsigned FileNo, StringRef Directory,
StringRef Filename,
- MD5::MD5Result *Checksum,
+ Optional<MD5::MD5Result> Checksum,
Optional<StringRef> Source,
unsigned CUID) {
return getContext().getDwarfFile(Directory, Filename, FileNo, Checksum,
@@ -213,7 +213,7 @@ MCStreamer::tryEmitDwarfFileDirective(unsigned FileNo, StringRef Directory,
void MCStreamer::emitDwarfFile0Directive(StringRef Directory,
StringRef Filename,
- MD5::MD5Result *Checksum,
+ Optional<MD5::MD5Result> Checksum,
Optional<StringRef> Source,
unsigned CUID) {
getContext().setMCLineTableRootFile(CUID, Directory, Filename, Checksum,