aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-01-01 10:48:56 -0800
committerKazu Hirata <kazu@google.com>2022-01-01 10:48:56 -0800
commit913457acf07be7f22d71ac41ad1076517d7f45c6 (patch)
treee650583608a1f6fd158b3b99842a5d5f532c7008 /lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
parent69ccc96162aa3471389d98184e0d683573edb47d (diff)
downloadllvm-913457acf07be7f22d71ac41ad1076517d7f45c6.tar.gz
llvm-913457acf07be7f22d71ac41ad1076517d7f45c6.tar.bz2
llvm-913457acf07be7f22d71ac41ad1076517d7f45c6.zip
[lldb] Use nullptr instead of 0 or NULL (NFC)
This is a re-submission of 24d240558811604354a8d6080405f6bad8d15b5c without the hunk in HostNativeThreadBase.h, which breaks builds on Windows. Identified with modernize-use-nullptr.
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp')
-rw-r--r--lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
index e72d55dd2aba..30d7d239834b 100644
--- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
+++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
@@ -768,9 +768,9 @@ public:
// Write out the EXC registers
data.PutHex32(EXCRegSet);
data.PutHex32(EXCWordCount);
- PrintRegisterValue(reg_ctx, "far", NULL, 8, data);
- PrintRegisterValue(reg_ctx, "esr", NULL, 4, data);
- PrintRegisterValue(reg_ctx, "exception", NULL, 4, data);
+ PrintRegisterValue(reg_ctx, "far", nullptr, 8, data);
+ PrintRegisterValue(reg_ctx, "esr", nullptr, 4, data);
+ PrintRegisterValue(reg_ctx, "exception", nullptr, 4, data);
return true;
}
return false;
@@ -5073,7 +5073,7 @@ void ObjectFileMachO::GetAllArchSpecs(const llvm::MachO::mach_header &header,
lldb::offset_t offset = lc_offset;
for (uint32_t i = 0; i < header.ncmds; ++i) {
const lldb::offset_t cmd_offset = offset;
- if (data.GetU32(&offset, &load_cmd, 2) == NULL)
+ if (data.GetU32(&offset, &load_cmd, 2) == nullptr)
break;
llvm::MachO::version_min_command version_min;
@@ -5123,7 +5123,7 @@ void ObjectFileMachO::GetAllArchSpecs(const llvm::MachO::mach_header &header,
offset = lc_offset;
for (uint32_t i = 0; i < header.ncmds; ++i) {
const lldb::offset_t cmd_offset = offset;
- if (data.GetU32(&offset, &load_cmd, 2) == NULL)
+ if (data.GetU32(&offset, &load_cmd, 2) == nullptr)
break;
do {