Path: blob/main/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/DWARFAddressRange.cpp
35269 views
//===- DWARFDebugAranges.cpp ------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "llvm/DebugInfo/DWARF/DWARFAddressRange.h"9#include "llvm/DebugInfo/DIContext.h"10#include "llvm/DebugInfo/DWARF/DWARFFormValue.h"11#include "llvm/Support/raw_ostream.h"1213using namespace llvm;1415void DWARFAddressRange::dump(raw_ostream &OS, uint32_t AddressSize,16DIDumpOptions DumpOpts,17const DWARFObject *Obj) const {1819OS << (DumpOpts.DisplayRawContents ? " " : "[");20DWARFFormValue::dumpAddress(OS, AddressSize, LowPC);21OS << ", ";22DWARFFormValue::dumpAddress(OS, AddressSize, HighPC);23OS << (DumpOpts.DisplayRawContents ? "" : ")");2425if (Obj)26DWARFFormValue::dumpAddressSection(*Obj, OS, DumpOpts, SectionIndex);27}2829raw_ostream &llvm::operator<<(raw_ostream &OS, const DWARFAddressRange &R) {30R.dump(OS, /* AddressSize */ 8);31return OS;32}333435