summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2012-06-05 06:10:39 +0000
committerJohn McCall <rjmccall@apple.com>2012-06-05 06:10:39 +0000
commit65485d7694862aa66d3a5346934db3a6a86520c5 (patch)
treea95a6f7faf8d21168563f2576eeb0a588c6d812d /clang/lib
parent9ab24cc3f5c43bd6f492f2fd6aeedbd56a67d5b5 (diff)
downloadbcm5719-llvm-65485d7694862aa66d3a5346934db3a6a86520c5.tar.gz
bcm5719-llvm-65485d7694862aa66d3a5346934db3a6a86520c5.zip
Revert "Only emit debug information for methods that are user defined, there's"
This reverts r157970, which was not passing on clang-x86_64-darwin10-nobootstrap-RA llvm-svn: 157983
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 07ddc338811..e8791751f5f 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -991,12 +991,8 @@ CollectCXXMemberFunctions(const CXXRecordDecl *RD, llvm::DIFile Unit,
if (D->isImplicit() && !D->isUsed())
continue;
- if (const CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(D)) {
- // Only emit debug information for user provided functions, we're
- // unlikely to want info for artificial functions.
- if (Method->isUserProvided())
- EltTys.push_back(CreateCXXMemberFunction(Method, Unit, RecordTy));
- }
+ if (const CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(D))
+ EltTys.push_back(CreateCXXMemberFunction(Method, Unit, RecordTy));
else if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(D))
for (FunctionTemplateDecl::spec_iterator SI = FTD->spec_begin(),
SE = FTD->spec_end(); SI != SE; ++SI) {
OpenPOWER on IntegriCloud