mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 21:55:39 +08:00
Revert "[lldb] Use nullptr instead of 0 or NULL (NFC)"
This reverts commit 913457acf0.
It again broke builds on Windows:
lldb/source/Host/common/HostNativeThreadBase.cpp(37,14): error:
assigning to 'lldb::thread_result_t' (aka 'unsigned int') from
incompatible type 'std::nullptr_t'
This commit is contained in:
@@ -768,9 +768,9 @@ public:
|
||||
// Write out the EXC registers
|
||||
data.PutHex32(EXCRegSet);
|
||||
data.PutHex32(EXCWordCount);
|
||||
PrintRegisterValue(reg_ctx, "far", nullptr, 8, data);
|
||||
PrintRegisterValue(reg_ctx, "esr", nullptr, 4, data);
|
||||
PrintRegisterValue(reg_ctx, "exception", nullptr, 4, data);
|
||||
PrintRegisterValue(reg_ctx, "far", NULL, 8, data);
|
||||
PrintRegisterValue(reg_ctx, "esr", NULL, 4, data);
|
||||
PrintRegisterValue(reg_ctx, "exception", NULL, 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) == nullptr)
|
||||
if (data.GetU32(&offset, &load_cmd, 2) == NULL)
|
||||
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) == nullptr)
|
||||
if (data.GetU32(&offset, &load_cmd, 2) == NULL)
|
||||
break;
|
||||
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user