diff options
author | Aaron Smith <aaron.smith@microsoft.com> | 2018-03-06 18:20:22 +0000 |
---|---|---|
committer | Aaron Smith <aaron.smith@microsoft.com> | 2018-03-06 18:20:22 +0000 |
commit | 122d9e79ae0fcc41be6066c3928dd59e5cc59ca6 (patch) | |
tree | df65145069f986316bff30cf0ec601cc96de3705 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h | |
parent | ed2211d50fec431b40d77f4573434fecf3923660 (diff) | |
download | llvm-122d9e79ae0fcc41be6066c3928dd59e5cc59ca6.zip llvm-122d9e79ae0fcc41be6066c3928dd59e5cc59ca6.tar.gz llvm-122d9e79ae0fcc41be6066c3928dd59e5cc59ca6.tar.bz2 |
[CodeView] Emit UdtSourceLine information for enums
Summary:
- Emit UdtSourceLine information for enums to match MSVC
- Add a method to add UDTSrcLine and call it for all Class/Struct/Union/Enum
- Update test cases to verify the changes
Reviewers: zturner, llvm-commits, rnk
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D44116
llvm-svn: 326824
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h index 62fc4ea..fdc8dd4 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h @@ -279,6 +279,8 @@ class LLVM_LIBRARY_VISIBILITY CodeViewDebug : public DebugHandlerBase { void addToUDTs(const DIType *Ty); + void addUDTSrcLine(const DIType *Ty, codeview::TypeIndex TI); + codeview::TypeIndex lowerType(const DIType *Ty, const DIType *ClassTy); codeview::TypeIndex lowerTypeAlias(const DIDerivedType *Ty); codeview::TypeIndex lowerTypeArray(const DICompositeType *Ty); |