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