[ARM] Generate 8.1-m CSINC, CSNEG and CSINV instructions.
[llvm-core.git] / lib / DebugInfo / DWARF / DWARFAddressRange.cpp
blobef6da08d34aa7c01ec13f05b2dc6f124a4cd4d52
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"
11 #include "llvm/Support/Format.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) const {
19 OS << (DumpOpts.DisplayRawContents ? " " : "[");
20 OS << format("0x%*.*" PRIx64 ", ", AddressSize * 2, AddressSize * 2, LowPC)
21 << format("0x%*.*" PRIx64, AddressSize * 2, AddressSize * 2, HighPC);
22 OS << (DumpOpts.DisplayRawContents ? "" : ")");
25 raw_ostream &llvm::operator<<(raw_ostream &OS, const DWARFAddressRange &R) {
26 R.dump(OS, /* AddressSize */ 8);
27 return OS;