summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-06-02 17:13:53 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-06-02 17:13:53 +0000
commit75c3ebfa020fa3355cd631f37eac2e5897ef3dad (patch)
treea073141b0dbe1aae8296fbeb42a14975740dccc9 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
parent49471dfb31efae6adea4f6f820e61ccd096b64e2 (diff)
downloadbcm5719-llvm-75c3ebfa020fa3355cd631f37eac2e5897ef3dad.tar.gz
bcm5719-llvm-75c3ebfa020fa3355cd631f37eac2e5897ef3dad.zip
[CodeView] Implement function-type indices
We still need to do something about member functions and calling conventions. Differential Revision: http://reviews.llvm.org/D20900 llvm-svn: 271541
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
index 24d785b8d4b..2cadb61405c 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
@@ -117,15 +117,10 @@ class LLVM_LIBRARY_VISIBILITY CodeViewDebug : public DebugHandlerBase {
/// to be confused with type indices for LF_FUNC_ID records.
unsigned NextFuncId = 0;
- codeview::TypeIndex VoidFnTyIdx;
-
- /// Get a type index for a generic void function type.
- codeview::TypeIndex getGenericFunctionTypeIndex();
-
InlineSite &getInlineSite(const DILocation *InlinedAt,
const DISubprogram *Inlinee);
- void recordFuncIdForSubprogram(const DISubprogram *SP);
+ codeview::TypeIndex getFuncIdForSubprogram(const DISubprogram *SP);
static void collectInlineSiteChildren(SmallVectorImpl<unsigned> &Children,
const FunctionInfo &FI,
@@ -195,6 +190,7 @@ class LLVM_LIBRARY_VISIBILITY CodeViewDebug : public DebugHandlerBase {
codeview::TypeIndex lowerTypePointer(const DIDerivedType *Ty);
codeview::TypeIndex lowerTypeMemberPointer(const DIDerivedType *Ty);
codeview::TypeIndex lowerTypeModifier(const DIDerivedType *Ty);
+ codeview::TypeIndex lowerTypeFunction(const DISubroutineType *Ty);
public:
CodeViewDebug(AsmPrinter *Asm);
OpenPOWER on IntegriCloud