From 62c9fe4273e8f2a0f3f0f4c86de3a90668532354 Mon Sep 17 00:00:00 2001 From: Lawrence D'Anna Date: Mon, 14 Oct 2019 20:15:34 +0000 Subject: uint32_t options -> File::OpenOptions options Summary: This patch re-types everywhere that passes a File::OpenOptions as a uint32_t so it actually uses File::OpenOptions. It also converts some OpenOptions related functions that fail by returning 0 or NULL into llvm::Expected split off from https://reviews.llvm.org/D68737 Reviewers: JDevlieghere, jasonmolenda, labath Reviewed By: labath Subscribers: lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D68853 llvm-svn: 374817 --- lldb/source/Core/StreamFile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lldb/source/Core/StreamFile.cpp') diff --git a/lldb/source/Core/StreamFile.cpp b/lldb/source/Core/StreamFile.cpp index d12541c9af5..2ddb39659d6 100644 --- a/lldb/source/Core/StreamFile.cpp +++ b/lldb/source/Core/StreamFile.cpp @@ -46,7 +46,8 @@ StreamFile::StreamFile(const char *path) : Stream() { } } -StreamFile::StreamFile(const char *path, uint32_t options, uint32_t permissions) +StreamFile::StreamFile(const char *path, File::OpenOptions options, + uint32_t permissions) : Stream() { auto file = FileSystem::Instance().Open(FileSpec(path), options, permissions); if (file) -- cgit v1.2.3