diff options
author | Greg Clayton <clayborg@gmail.com> | 2019-09-11 20:51:03 +0000 |
---|---|---|
committer | Greg Clayton <clayborg@gmail.com> | 2019-09-11 20:51:03 +0000 |
commit | 7fcc2c2b5a9e02175cc3154f4f3983395f9840a3 (patch) | |
tree | 5bf694afc81364cfd0cd7bce156bc66ef9cb2bb5 /llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp | |
parent | ca6e60971e9578acb0561df7797283474291f9d9 (diff) | |
download | bcm5719-llvm-7fcc2c2b5a9e02175cc3154f4f3983395f9840a3.tar.gz bcm5719-llvm-7fcc2c2b5a9e02175cc3154f4f3983395f9840a3.zip |
Add a LineTable class to GSYM and test it.
This patch adds the ability to create a gsym::LineTable object, populate it, encode and decode it and test all functionality.
The full format of the LineTable encoding is specified in the header file LineTable.h.
Differential Revision: https://reviews.llvm.org/D66602
llvm-svn: 371657
Diffstat (limited to 'llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp b/llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp index 55c36a55b4b..19cfa400854 100644 --- a/llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp +++ b/llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp @@ -14,9 +14,6 @@ using namespace gsym; raw_ostream &llvm::gsym::operator<<(raw_ostream &OS, const FunctionInfo &FI) { OS << '[' << HEX64(FI.Range.Start) << '-' << HEX64(FI.Range.End) << "): " - << "Name=" << HEX32(FI.Name) << '\n'; - for (const auto &Line : FI.Lines) - OS << Line << '\n'; - OS << FI.Inline; + << "Name=" << HEX32(FI.Name) << '\n' << FI.LineTable << FI.Inline; return OS; } |