[llvm-shlib] Fix the version naming style of libLLVM for Windows (#85710)
[llvm-project.git] / llvm / lib / DebugInfo / DWARF / DWARFAddressRange.cpp
blob2d6c145f9237745dc82c33f2296661119a6647d6
1 //===- DWARFDebugAranges.cpp ------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "llvm/DebugInfo/DWARF/DWARFAddressRange.h"
10 #include "llvm/DebugInfo/DIContext.h"
11 #include "llvm/DebugInfo/DWARF/DWARFFormValue.h"
12 #include "llvm/Support/raw_ostream.h"
14 using namespace llvm;
16 void DWARFAddressRange::dump(raw_ostream &OS, uint32_t AddressSize,
17 DIDumpOptions DumpOpts,
18 const DWARFObject *Obj) const {
20 OS << (DumpOpts.DisplayRawContents ? " " : "[");
21 DWARFFormValue::dumpAddress(OS, AddressSize, LowPC);
22 OS << ", ";
23 DWARFFormValue::dumpAddress(OS, AddressSize, HighPC);
24 OS << (DumpOpts.DisplayRawContents ? "" : ")");
26 if (Obj)
27 DWARFFormValue::dumpAddressSection(*Obj, OS, DumpOpts, SectionIndex);
30 raw_ostream &llvm::operator<<(raw_ostream &OS, const DWARFAddressRange &R) {
31 R.dump(OS, /* AddressSize */ 8);
32 return OS;