[llvm] r234783 - DebugInfo: Remove a few unnecessary wrappers
Duncan P. N. Exon Smith
dexonsmith at apple.com
Mon Apr 13 12:44:31 PDT 2015
Author: dexonsmith
Date: Mon Apr 13 14:44:31 2015
New Revision: 234783
URL: http://llvm.org/viewvc/llvm-project?rev=234783&view=rev
Log:
DebugInfo: Remove a few unnecessary wrappers
Modified:
llvm/trunk/include/llvm/IR/DebugInfo.h
Modified: llvm/trunk/include/llvm/IR/DebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DebugInfo.h?rev=234783&r1=234782&r2=234783&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/DebugInfo.h (original)
+++ llvm/trunk/include/llvm/IR/DebugInfo.h Mon Apr 13 14:44:31 2015
@@ -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()); }
More information about the llvm-commits
mailing list