diff options
| author | Reid Kleckner <rnk@google.com> | 2016-06-01 17:05:51 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2016-06-01 17:05:51 +0000 |
| commit | 5acacbb04f6bd1253999f65098d4185672192629 (patch) | |
| tree | daa09a3f1f2914b2ceefee388f28ba044deeed89 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h | |
| parent | 10df497a1f4766e1c5ca598ba5fd08085f6d263c (diff) | |
| download | bcm5719-llvm-5acacbb04f6bd1253999f65098d4185672192629.tar.gz bcm5719-llvm-5acacbb04f6bd1253999f65098d4185672192629.zip | |
[codeview] Translate basic DITypes to CV type records
Summary:
This is meant to be the tiniest step towards DIType to CV type index
translation that I could come up with. Whenever translation fails, we use type
index zero, which is the unknown type.
Reviewers: aaboud, zturner
Subscribers: llvm-commits, amccarth
Differential Revision: http://reviews.llvm.org/D20840
llvm-svn: 271408
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h index df7c85c0007..41350d42f7e 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h @@ -185,6 +185,16 @@ class LLVM_LIBRARY_VISIBILITY CodeViewDebug : public DebugHandlerBase { void emitLocalVariable(const LocalVariable &Var); + /// Translates the DIType to codeview if necessary and returns a type index + /// for it. + codeview::TypeIndex getTypeIndex(DITypeRef Ty); + + codeview::TypeIndex lowerType(const DIType *Ty); + codeview::TypeIndex lowerTypeBasic(const DIBasicType *Ty); + codeview::TypeIndex lowerTypePointer(const DIDerivedType *Ty); + codeview::TypeIndex lowerTypeMemberPointer(const DIDerivedType *Ty); + codeview::TypeIndex lowerTypeModifier(const DIDerivedType *Ty); + public: CodeViewDebug(AsmPrinter *Asm); |

