xref: /llvm-project/llvm/lib/DebugInfo/DWARF/DWARFLocationExpression.cpp (revision 39285a0f02c7bc5e4bad8a684a900123b097511d)
1*39285a0fSPavel Labath //===- DWARFLocationExpression.cpp ----------------------------------------===//
2*39285a0fSPavel Labath //
3*39285a0fSPavel Labath // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*39285a0fSPavel Labath // See https://llvm.org/LICENSE.txt for license information.
5*39285a0fSPavel Labath // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*39285a0fSPavel Labath //
7*39285a0fSPavel Labath //===----------------------------------------------------------------------===//
8*39285a0fSPavel Labath 
9*39285a0fSPavel Labath #include "llvm/DebugInfo/DWARF/DWARFLocationExpression.h"
10*39285a0fSPavel Labath #include "llvm/ADT/iterator_range.h"
11*39285a0fSPavel Labath #include "llvm/Support/FormatVariadic.h"
12*39285a0fSPavel Labath 
13*39285a0fSPavel Labath using namespace llvm;
14*39285a0fSPavel Labath 
operator <<(raw_ostream & OS,const DWARFLocationExpression & Loc)15*39285a0fSPavel Labath raw_ostream &llvm::operator<<(raw_ostream &OS,
16*39285a0fSPavel Labath                               const DWARFLocationExpression &Loc) {
17*39285a0fSPavel Labath   return OS << Loc.Range << ": "
18*39285a0fSPavel Labath             << formatv("{0}", make_range(Loc.Expr.begin(), Loc.Expr.end()));
19*39285a0fSPavel Labath }
20