summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2012-10-17 17:37:17 +0000
committerEric Christopher <echristo@gmail.com>2012-10-17 17:37:17 +0000
commit086da3411969af31c55faeecda722939ec99c4d9 (patch)
tree3c0299ba992e7e783863906dcb15be8103e20ae3 /clang/lib/CodeGen/CGDebugInfo.cpp
parent0a69176ce09fce27b628860894e4701dda70a451 (diff)
downloadbcm5719-llvm-086da3411969af31c55faeecda722939ec99c4d9.tar.gz
bcm5719-llvm-086da3411969af31c55faeecda722939ec99c4d9.zip
Revert r158009 since there are some uses of artificial functions in
debug info. llvm-svn: 166109
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-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 402a945e4e1..f0c85326ec7 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1023,12 +1023,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