xref: /llvm-project/llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp (revision 044776bf5d92ce37ad32aab7d59a87d4bcb2e8e8)
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.startAddress()) << '-'
17      << HEX64(FI.Range.endAddress()) << "): "
18      << "Name=" << HEX32(FI.Name) << '\n';
19   for (const auto &Line : FI.Lines)
20     OS << Line << '\n';
21   OS << FI.Inline;
22   return OS;
23 }
24