diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-21 18:43:54 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-21 18:43:54 +0000 |
| commit | dadc2b627d834acda6def76209db2c2001a079a9 (patch) | |
| tree | a8a6e576ca52c7a886ee26d749f583c39a4f5c37 /clang/lib/CodeGen/CGDebugInfo.h | |
| parent | ec0bff926242ff96272f27a16dd41cb0604efea7 (diff) | |
| download | bcm5719-llvm-dadc2b627d834acda6def76209db2c2001a079a9.tar.gz bcm5719-llvm-dadc2b627d834acda6def76209db2c2001a079a9.zip | |
DebugInfo: Prepare for deletion of DIDescriptor subclasses
An upcoming LLVM commit will delete all the remaining subclasses of (the
already deleted) `DIDescriptor`. Stop using them.
llvm-svn: 235403
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index 57c5f81ba90..347927900b2 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -290,7 +290,7 @@ public: void EmitUsingDecl(const UsingDecl &UD); /// \brief Emit C++ namespace alias. - llvm::DIImportedEntity EmitNamespaceAlias(const NamespaceAliasDecl &NA); + llvm::MDImportedEntity *EmitNamespaceAlias(const NamespaceAliasDecl &NA); /// \brief Emit record type's standalone debug info. llvm::MDType *getOrCreateRecordType(QualType Ty, SourceLocation L); @@ -376,13 +376,14 @@ private: /// decalration represented in the given FunctionDecl. llvm::MDSubprogram *getFunctionForwardDeclaration(const FunctionDecl *FD); - /// \brief Create a DIGlobalVariable describing the forward - /// decalration represented in the given VarDecl. - llvm::DIGlobalVariable getGlobalVariableForwardDeclaration(const VarDecl *VD); + /// \brief Create a global variable describing the forward decalration + /// represented in the given VarDecl. + llvm::MDGlobalVariable * + getGlobalVariableForwardDeclaration(const VarDecl *VD); /// Return a global variable that represents one of the collection of /// global variables created for an anonmyous union. - llvm::DIGlobalVariable + llvm::MDGlobalVariable * CollectAnonRecordDecls(const RecordDecl *RD, llvm::MDFile *Unit, unsigned LineNo, StringRef LinkageName, llvm::GlobalVariable *Var, llvm::MDScope *DContext); |

