xref: /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp (revision 7029da5c36f2d3cf6bb6c81bf551229f416399e8)
1 //===- FunctionInfo.cpp -----------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #include "llvm/DebugInfo/GSYM/FunctionInfo.h"
11 
12 using namespace llvm;
13 using namespace gsym;
14 
15 raw_ostream &llvm::gsym::operator<<(raw_ostream &OS, const FunctionInfo &FI) {
16   OS << '[' << HEX64(FI.Range.Start) << '-' << HEX64(FI.Range.End) << "): "
17      << "Name=" << HEX32(FI.Name) << '\n';
18   for (const auto &Line : FI.Lines)
19     OS << Line << '\n';
20   OS << FI.Inline;
21   return OS;
22 }
23