LLVM
17.0.0git
lib
DebugInfo
DWARF
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
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
"
13
14
using namespace
llvm
;
15
16
void
DWARFAddressRange::dump
(
raw_ostream
&OS,
uint32_t
AddressSize,
17
DIDumpOptions
DumpOpts,
18
const
DWARFObject
*Obj)
const
{
19
20
OS << (DumpOpts.
DisplayRawContents
?
" "
:
"["
);
21
DWARFFormValue::dumpAddress
(OS, AddressSize,
LowPC
);
22
OS <<
", "
;
23
DWARFFormValue::dumpAddress
(OS, AddressSize,
HighPC
);
24
OS << (DumpOpts.
DisplayRawContents
?
""
:
")"
);
25
26
if
(Obj)
27
DWARFFormValue::dumpAddressSection
(*Obj, OS, DumpOpts,
SectionIndex
);
28
}
29
30
raw_ostream
&
llvm::operator<<
(
raw_ostream
&OS,
const
DWARFAddressRange
&R) {
31
R.dump(OS,
/* AddressSize */
8);
32
return
OS;
33
}
DWARFFormValue.h
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::DWARFFormValue::dumpAddressSection
static void dumpAddressSection(const DWARFObject &Obj, raw_ostream &OS, DIDumpOptions DumpOpts, uint64_t SectionIndex)
Definition:
DWARFFormValue.cpp:392
DWARFAddressRange.h
llvm::DWARFAddressRange::LowPC
uint64_t LowPC
Definition:
DWARFAddressRange.h:26
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition:
raw_ostream.h:52
llvm::DWARFObject
Definition:
DWARFObject.h:26
llvm::operator<<
raw_ostream & operator<<(raw_ostream &OS, const APFixedPoint &FX)
Definition:
APFixedPoint.h:292
llvm::DWARFAddressRange::SectionIndex
uint64_t SectionIndex
Definition:
DWARFAddressRange.h:28
llvm::DWARFAddressRange::HighPC
uint64_t HighPC
Definition:
DWARFAddressRange.h:27
llvm::DWARFAddressRange::dump
void dump(raw_ostream &OS, uint32_t AddressSize, DIDumpOptions DumpOpts={}, const DWARFObject *Obj=nullptr) const
Definition:
DWARFAddressRange.cpp:16
llvm::DWARFFormValue::dumpAddress
void dumpAddress(raw_ostream &OS, uint64_t Address) const
uint32_t
DIContext.h
llvm::DIDumpOptions::DisplayRawContents
bool DisplayRawContents
Definition:
DIContext.h:201
llvm::DWARFAddressRange
Definition:
DWARFAddressRange.h:25
raw_ostream.h
llvm::DIDumpOptions
Container for dump options that control which debug information will be dumped.
Definition:
DIContext.h:189
Generated on Sat Jan 28 2023 09:36:55 for LLVM by
1.8.17