From a8b770e5ab16c6da839f90a9c626d6e1657abe8c Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Mon, 22 Apr 2019 22:51:34 +0000 Subject: [PATCH] Fully qualify llvm::Optional, some compilers complain otherwise. llvm-svn: 358933 --- tools/dsymutil/dsymutil.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/dsymutil/dsymutil.cpp b/tools/dsymutil/dsymutil.cpp index 0eb1257d98d..32569846361 100644 --- a/tools/dsymutil/dsymutil.cpp +++ b/tools/dsymutil/dsymutil.cpp @@ -280,12 +280,13 @@ static bool verify(llvm::StringRef OutputFile, llvm::StringRef Arch) { namespace { struct OutputLocation { - OutputLocation(std::string DWARFFile, Optional ResourceDir = {}) + OutputLocation(std::string DWARFFile, + llvm::Optional ResourceDir = {}) : DWARFFile(DWARFFile), ResourceDir(ResourceDir) {} /// This method is a workaround for older compilers. - Optional getResourceDir() const { return ResourceDir; } + llvm::Optional getResourceDir() const { return ResourceDir; } std::string DWARFFile; - Optional ResourceDir; + llvm::Optional ResourceDir; }; }