xref: /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/DWARFLocationExpression.cpp (revision 29332c0dcee1e80c9fb871e06c3160bd5deb1b44)
1 //===- DWARFLocationExpression.cpp ----------------------------------------===//
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/DWARFLocationExpression.h"
10 #include "llvm/ADT/iterator_range.h"
11 #include "llvm/Support/FormatVariadic.h"
12 
13 using namespace llvm;
14 
15 raw_ostream &llvm::operator<<(raw_ostream &OS,
16                               const DWARFLocationExpression &Loc) {
17   return OS << Loc.Range << ": "
18             << formatv("{0}", make_range(Loc.Expr.begin(), Loc.Expr.end()));
19 }
20