mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-28 22:58:17 +00:00
Revert "DebugInfo: remove unused helper function getDICompositeType."
This reverts commit r185876 as the functions appear to still be used by dragonegg. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
201cdb1004
commit
7bb386a299
@ -695,6 +695,9 @@ namespace llvm {
|
|||||||
/// getDISubprogram - Find subprogram that is enclosing this scope.
|
/// getDISubprogram - Find subprogram that is enclosing this scope.
|
||||||
DISubprogram getDISubprogram(const MDNode *Scope);
|
DISubprogram getDISubprogram(const MDNode *Scope);
|
||||||
|
|
||||||
|
/// getDICompositeType - Find underlying composite type.
|
||||||
|
DICompositeType getDICompositeType(DIType T);
|
||||||
|
|
||||||
/// isSubprogramContext - Return true if Context is either a subprogram
|
/// isSubprogramContext - Return true if Context is either a subprogram
|
||||||
/// or another context nested inside a subprogram.
|
/// or another context nested inside a subprogram.
|
||||||
bool isSubprogramContext(const MDNode *Context);
|
bool isSubprogramContext(const MDNode *Context);
|
||||||
|
@ -844,6 +844,17 @@ DISubprogram llvm::getDISubprogram(const MDNode *Scope) {
|
|||||||
return DISubprogram();
|
return DISubprogram();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// getDICompositeType - Find underlying composite type.
|
||||||
|
DICompositeType llvm::getDICompositeType(DIType T) {
|
||||||
|
if (T.isCompositeType())
|
||||||
|
return DICompositeType(T);
|
||||||
|
|
||||||
|
if (T.isDerivedType())
|
||||||
|
return getDICompositeType(DIDerivedType(T).getTypeDerivedFrom());
|
||||||
|
|
||||||
|
return DICompositeType();
|
||||||
|
}
|
||||||
|
|
||||||
/// isSubprogramContext - Return true if Context is either a subprogram
|
/// isSubprogramContext - Return true if Context is either a subprogram
|
||||||
/// or another context nested inside a subprogram.
|
/// or another context nested inside a subprogram.
|
||||||
bool llvm::isSubprogramContext(const MDNode *Context) {
|
bool llvm::isSubprogramContext(const MDNode *Context) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user