LLVM  8.0.1
DWARFAddressRange.cpp
Go to the documentation of this file.
1 //===- DWARFDebugAranges.cpp ------------------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
11 
12 #include "llvm/Support/Format.h"
14 
15 using namespace llvm;
16 
18  DIDumpOptions DumpOpts) const {
19 
20  OS << (DumpOpts.DisplayRawContents ? " " : "[");
21  OS << format("0x%*.*" PRIx64 ", ", AddressSize * 2, AddressSize * 2, LowPC)
22  << format("0x%*.*" PRIx64, AddressSize * 2, AddressSize * 2, HighPC);
23  OS << (DumpOpts.DisplayRawContents ? "" : ")");
24 }
25 
27  R.dump(OS, /* AddressSize */ 8);
28  return OS;
29 }
This class represents lattice values for constants.
Definition: AllocatorList.h:24
format_object< Ts... > format(const char *Fmt, const Ts &... Vals)
These are helper functions used to produce formatted output.
Definition: Format.h:124
Container for dump options that control which debug information will be dumped.
Definition: DIContext.h:159
void dump(raw_ostream &OS, uint32_t AddressSize, DIDumpOptions DumpOpts={}) const
raw_ostream & operator<<(raw_ostream &OS, const APInt &I)
Definition: APInt.h:2039
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:46