LLVM  9.0.0svn
DWARFAddressRange.cpp
Go to the documentation of this file.
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 //===----------------------------------------------------------------------===//
8 
10 
11 #include "llvm/Support/Format.h"
13 
14 using namespace llvm;
15 
17  DIDumpOptions DumpOpts) const {
18 
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 ? "" : ")");
23 }
24 
26  R.dump(OS, /* AddressSize */ 8);
27  return OS;
28 }
This class represents lattice values for constants.
Definition: AllocatorList.h:23
format_object< Ts... > format(const char *Fmt, const Ts &... Vals)
These are helper functions used to produce formatted output.
Definition: Format.h:123
Container for dump options that control which debug information will be dumped.
Definition: DIContext.h:167
void dump(raw_ostream &OS, uint32_t AddressSize, DIDumpOptions DumpOpts={}) const
raw_ostream & operator<<(raw_ostream &OS, const APInt &I)
Definition: APInt.h:2038
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:45