diff options
author | Reid Kleckner <rnk@google.com> | 2016-06-22 16:06:42 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2016-06-22 16:06:42 +0000 |
commit | 1ab7eac84bf2a63a6cdc9788f12c2c44a84abb6c (patch) | |
tree | 40d2ad4c8e3490f2fa73fe6b47f39fa135562b9d /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h | |
parent | 69317f2ec2eba8c1a0f79e4688217f6fab262b8a (diff) | |
download | bcm5719-llvm-1ab7eac84bf2a63a6cdc9788f12c2c44a84abb6c.tar.gz bcm5719-llvm-1ab7eac84bf2a63a6cdc9788f12c2c44a84abb6c.zip |
[codeview] Remove ClassInfoMap
From a design perspective, complete record type emission should not
depend on information from other complete record types.
Currently this map is unused, and needlessly accumulates data throughout
compilation.
llvm-svn: 273431
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h index 98499b934af..be8d6cea024 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h @@ -150,8 +150,6 @@ class LLVM_LIBRARY_VISIBILITY CodeViewDebug : public DebugHandlerBase { /// always looked up in the normal TypeIndices map. DenseMap<const DICompositeType *, codeview::TypeIndex> CompleteTypeIndices; - /// Map from DICompositeType* to class info. - DenseMap<const DICompositeType *, std::unique_ptr<ClassInfo>> ClassInfoMap; const DISubprogram *CurrentSubprogram = nullptr; // The UDTs we have seen while processing types; each entry is a pair of type @@ -249,7 +247,7 @@ class LLVM_LIBRARY_VISIBILITY CodeViewDebug : public DebugHandlerBase { codeview::TypeIndex lowerCompleteTypeUnion(const DICompositeType *Ty); void collectMemberInfo(ClassInfo &Info, const DIDerivedType *DDTy); - ClassInfo &collectClassInfo(const DICompositeType *Ty); + ClassInfo collectClassInfo(const DICompositeType *Ty); /// Common record member lowering functionality for record types, which are /// structs, classes, and unions. Returns the field list index and the member |