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/lib/ObjectYAML/CodeViewYAMLSymbols.cpp | |
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/lib/ObjectYAML/CodeViewYAMLSymbols.cpp')
-rw-r--r-- | llvm/lib/ObjectYAML/CodeViewYAMLSymbols.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ObjectYAML/CodeViewYAMLSymbols.cpp b/llvm/lib/ObjectYAML/CodeViewYAMLSymbols.cpp index d6c9f10de01..301ef4c2334 100644 --- a/llvm/lib/ObjectYAML/CodeViewYAMLSymbols.cpp +++ b/llvm/lib/ObjectYAML/CodeViewYAMLSymbols.cpp @@ -248,7 +248,7 @@ struct UnknownSymbolRecord : public SymbolRecordBase { uint8_t *Buffer = Allocator.Allocate<uint8_t>(TotalLen); ::memcpy(Buffer, &Prefix, sizeof(RecordPrefix)); ::memcpy(Buffer + sizeof(RecordPrefix), Data.data(), Data.size()); - return CVSymbol(Kind, ArrayRef<uint8_t>(Buffer, TotalLen)); + return CVSymbol(ArrayRef<uint8_t>(Buffer, TotalLen)); } Error fromCodeViewSymbol(CVSymbol CVS) override { |