LLVM 17.0.0git
Go to the documentation of this file.
1//===- DWARFLocationExpression.cpp ----------------------------------------===//
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
13using namespace llvm;
16 const DWARFLocationExpression &Loc) {
17 return OS << Loc.Range << ": "
18 << formatv("{0}", make_range(Loc.Expr.begin(), Loc.Expr.end()));
raw_pwrite_stream & OS
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:52
This provides a very simple, boring adaptor for a begin and end iterator into a range type.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
auto formatv(const char *Fmt, Ts &&... Vals) -> formatv_object< decltype(std::make_tuple(detail::build_format_adapter(std::forward< Ts >(Vals))...))>
iterator_range< T > make_range(T x, T y)
Convenience function for iterating over sub-ranges.
raw_ostream & operator<<(raw_ostream &OS, const APFixedPoint &FX)
Definition: APFixedPoint.h:292
Represents a single DWARF expression, whose value is location-dependent.
SmallVector< uint8_t, 4 > Expr
The expression itself.
std::optional< DWARFAddressRange > Range
The address range in which this expression is valid.