diff options
author | Devang Patel <dpatel@apple.com> | 2010-01-28 21:43:50 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-01-28 21:43:50 +0000 |
commit | d774d1e697694f39bdfbea499cd852564cf81107 (patch) | |
tree | a055601546ecfdee219e78b03776984a2f5b89a7 /lib/CodeGen/CGDebugInfo.cpp | |
parent | 3064afebf823e3909d19b9cea5c1ddadb1d12b0e (diff) |
Static methods do not need "this" pointer argument.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94756 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 4a4b1a9179..9fdff82539 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -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(); |