diff options
Diffstat (limited to 'source/Core/Address.cpp')
-rw-r--r-- | source/Core/Address.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/source/Core/Address.cpp b/source/Core/Address.cpp index a4dc364b701b..0da83eb98edb 100644 --- a/source/Core/Address.cpp +++ b/source/Core/Address.cpp @@ -1,9 +1,8 @@ //===-- Address.cpp ---------------------------------------------*- C++ -*-===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -162,7 +161,7 @@ static bool ReadAddress(ExecutionContextScope *exe_scope, static bool DumpUInt(ExecutionContextScope *exe_scope, const Address &address, uint32_t byte_size, Stream *strm) { if (exe_scope == nullptr || byte_size == 0) - return 0; + return false; std::vector<uint8_t> buf(byte_size, 0); if (ReadBytes(exe_scope, address, &buf[0], buf.size()) == buf.size()) { @@ -928,7 +927,6 @@ size_t Address::MemorySize() const { return sizeof(Address); } -//---------------------------------------------------------------------- // NOTE: Be careful using this operator. It can correctly compare two // addresses from the same Module correctly. It can't compare two addresses // from different modules in any meaningful way, but it will compare the module @@ -940,7 +938,6 @@ size_t Address::MemorySize() const { // address results to make much sense // // This basically lets Address objects be used in ordered collection classes. -//---------------------------------------------------------------------- bool lldb_private::operator<(const Address &lhs, const Address &rhs) { ModuleSP lhs_module_sp(lhs.GetModule()); |