FunctionInfo.cpp 726 B

12345678910111213141516171819202122
  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. #include "llvm/DebugInfo/GSYM/FunctionInfo.h"
  10. using namespace llvm;
  11. using namespace gsym;
  12. raw_ostream &llvm::gsym::operator<<(raw_ostream &OS, const FunctionInfo &FI) {
  13. OS << '[' << HEX64(FI.Range.Start) << '-' << HEX64(FI.Range.End) << "): "
  14. << "Name=" << HEX32(FI.Name) << '\n';
  15. for (const auto &Line : FI.Lines)
  16. OS << Line << '\n';
  17. OS << FI.Inline;
  18. return OS;
  19. }