diff options
| author | Reid Kleckner <rnk@google.com> | 2019-04-04 00:28:48 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2019-04-04 00:28:48 +0000 |
| commit | e10d00419ab749170301ef6b902b86bb2fb56da1 (patch) | |
| tree | e301a26421fd35546acc13ecf0ec64e4a8954c9c /llvm/tools | |
| parent | 15f0057e66c58c390d5cd813fe98864d844f1e0d (diff) | |
| download | bcm5719-llvm-e10d00419ab749170301ef6b902b86bb2fb56da1.tar.gz bcm5719-llvm-e10d00419ab749170301ef6b902b86bb2fb56da1.zip | |
[codeview] Remove Type member from CVRecord
Summary:
Now CVType and CVSymbol are effectively type-safe wrappers around
ArrayRef<uint8_t>. Make the kind() accessor load it from the
RecordPrefix, which is the same for types and symbols.
Reviewers: zturner, aganea
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D60018
llvm-svn: 357658
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/llvm-pdbutil/MinimalSymbolDumper.cpp | 2 | ||||
| -rw-r--r-- | llvm/tools/llvm-pdbutil/MinimalTypeDumper.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-pdbutil/MinimalSymbolDumper.cpp b/llvm/tools/llvm-pdbutil/MinimalSymbolDumper.cpp index a92a0cf3c21..a6f374305fc 100644 --- a/llvm/tools/llvm-pdbutil/MinimalSymbolDumper.cpp +++ b/llvm/tools/llvm-pdbutil/MinimalSymbolDumper.cpp @@ -331,7 +331,7 @@ Error MinimalSymbolDumper::visitSymbolBegin(codeview::CVSymbol &Record, // append to the existing line. P.formatLine("{0} | {1} [size = {2}]", fmt_align(Offset, AlignStyle::Right, 6), - formatSymbolKind(Record.Type), Record.length()); + formatSymbolKind(Record.kind()), Record.length()); P.Indent(); return Error::success(); } diff --git a/llvm/tools/llvm-pdbutil/MinimalTypeDumper.cpp b/llvm/tools/llvm-pdbutil/MinimalTypeDumper.cpp index dff4423dc16..3fdef085f19 100644 --- a/llvm/tools/llvm-pdbutil/MinimalTypeDumper.cpp +++ b/llvm/tools/llvm-pdbutil/MinimalTypeDumper.cpp @@ -224,7 +224,7 @@ Error MinimalTypeDumpVisitor::visitTypeBegin(CVType &Record, TypeIndex Index) { // append to the existing line. P.formatLine("{0} | {1} [size = {2}", fmt_align(Index, AlignStyle::Right, Width), - formatTypeLeafKind(Record.Type), Record.length()); + formatTypeLeafKind(Record.kind()), Record.length()); if (Hashes) { std::string H; if (Index.toArrayIndex() >= HashValues.size()) { |

