mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-15 00:16:42 +00:00
Fully qualify llvm::Optional, some compilers complain otherwise.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358933 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e9837b50ef
commit
a550ed7e78
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user