summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
diff options
context:
space:
mode:
authorTatyana Krasnukha <tatyana@synopsys.com>2018-09-27 07:11:58 +0000
committerTatyana Krasnukha <tatyana@synopsys.com>2018-09-27 07:11:58 +0000
commite40db05b27750d40a61d7b9d8be8d18b23218941 (patch)
treec78d70def4941cac312d233c5409899c22fa773b /lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
parent041e68fe1e00ba949deb36f6f9da893a83dbc7fe (diff)
downloadbcm5719-llvm-e40db05b27750d40a61d7b9d8be8d18b23218941.tar.gz
bcm5719-llvm-e40db05b27750d40a61d7b9d8be8d18b23218941.zip
Replace pointer to C-array of PropertyDefinition with llvm::ArrayRef
Differential Revision: https://reviews.llvm.org/D52572 llvm-svn: 343181
Diffstat (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp')
-rw-r--r--lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
index 27b9c635232..ba1bd60f48f 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
@@ -186,14 +186,13 @@ const char *PlatformDarwinKernel::GetDescriptionStatic() {
/// Code to handle the PlatformDarwinKernel settings
//------------------------------------------------------------------
-static PropertyDefinition g_properties[] = {
+static constexpr PropertyDefinition g_properties[] = {
{"search-locally-for-kexts", OptionValue::eTypeBoolean, true, true, NULL,
{}, "Automatically search for kexts on the local system when doing "
"kernel debugging."},
{"kext-directories", OptionValue::eTypeFileSpecList, false, 0, NULL, {},
"Directories/KDKs to search for kexts in when starting a kernel debug "
- "session."},
- {NULL, OptionValue::eTypeInvalid, false, 0, NULL, {}, NULL}};
+ "session."}};
enum { ePropertySearchForKexts = 0, ePropertyKextDirectories };
OpenPOWER on IntegriCloud