DebugInfo: Remove a few unnecessary wrappers

llvm-svn: 234783
This commit is contained in:
Duncan P. N. Exon Smith 2015-04-13 19:44:31 +00:00
parent f24e76c36c
commit 7f38919e05
1 changed files with 3 additions and 7 deletions

View File

@ -513,9 +513,7 @@ public:
unsigned getScopeLineNumber() const { return get()->getScopeLine(); }
DIScopeRef getContext() const { return get()->getScope(); }
DISubroutineType getType() const {
return DISubroutineType(get()->getType());
}
DISubroutineType getType() const { return get()->getType(); }
DITypeRef getContainingType() const { return get()->getContainingType(); }
@ -525,11 +523,9 @@ public:
Function *getFunction() const { return get()->getFunction(); }
void replaceFunction(Function *F) { get()->replaceFunction(F); }
DIArray getTemplateParams() const {
return DIArray(get()->getTemplateParams());
}
DIArray getTemplateParams() const { return get()->getTemplateParams(); }
DISubprogram getFunctionDeclaration() const {
return DISubprogram(get()->getDeclaration());
return get()->getDeclaration();
}
DIArray getVariables() const { return DIArray(get()->getVariables()); }