mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 18:18:09 +08:00
Static methods do not need "this" pointer argument.
llvm-svn: 94756
This commit is contained in:
@@ -525,6 +525,11 @@ llvm::DIType
|
||||
CGDebugInfo::getOrCreateMethodType(const CXXMethodDecl *Method,
|
||||
llvm::DICompileUnit Unit) {
|
||||
llvm::DIType FnTy = getOrCreateType(Method->getType(), Unit);
|
||||
|
||||
// Static methods do not need "this" pointer argument.
|
||||
if (Method->isStatic())
|
||||
return FnTy;
|
||||
|
||||
// Add "this" pointer.
|
||||
|
||||
llvm::DIArray Args = llvm::DICompositeType(FnTy.getNode()).getTypeArray();
|
||||
|
||||
Reference in New Issue
Block a user