Fully qualify llvm::Optional, some compilers complain otherwise.

llvm-svn: 358933
This commit is contained in:
Adrian Prantl 2019-04-22 22:51:34 +00:00
parent d1ec53372c
commit a8b770e5ab

View File

@ -280,12 +280,13 @@ static bool verify(llvm::StringRef OutputFile, llvm::StringRef Arch) {
namespace {
struct OutputLocation {
OutputLocation(std::string DWARFFile, Optional<std::string> ResourceDir = {})
OutputLocation(std::string DWARFFile,
llvm::Optional<std::string> ResourceDir = {})
: DWARFFile(DWARFFile), ResourceDir(ResourceDir) {}
/// This method is a workaround for older compilers.
Optional<std::string> getResourceDir() const { return ResourceDir; }
llvm::Optional<std::string> getResourceDir() const { return ResourceDir; }
std::string DWARFFile;
Optional<std::string> ResourceDir;
llvm::Optional<std::string> ResourceDir;
};
}