diff options
author | Eric Christopher <echristo@apple.com> | 2012-09-19 22:01:42 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-09-19 22:01:42 +0000 |
commit | bdb1abb72addb1de7cdefdf6ef2917abed6c8275 (patch) | |
tree | 4df336a8dd83367fdf65bdcb4e6b51b436269944 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 7106ec3ecb5214177d282ae8ce33142f725a9d92 (diff) | |
download | bcm5719-llvm-bdb1abb72addb1de7cdefdf6ef2917abed6c8275.tar.gz bcm5719-llvm-bdb1abb72addb1de7cdefdf6ef2917abed6c8275.zip |
Update and expand comment.
llvm-svn: 164254
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index d3391b79af4..10ad7af19e0 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -793,8 +793,6 @@ CollectRecordFields(const RecordDecl *record, llvm::DIFile tunit, for (CXXRecordDecl::capture_const_iterator I = CXXDecl->captures_begin(), E = CXXDecl->captures_end(); I != E; ++I, ++Field, ++fieldno) { const LambdaExpr::Capture C = *I; - // TODO: Need to handle 'this' in some way by probably renaming the - // this of the lambda class and having a field member of 'this'. if (C.capturesVariable()) { VarDecl *V = C.getCapturedVar(); llvm::DIFile VUnit = getOrCreateFile(C.getLocation()); @@ -810,6 +808,10 @@ CollectRecordFields(const RecordDecl *record, llvm::DIFile tunit, VUnit, RecordTy); elements.push_back(fieldType); } else { + // TODO: Need to handle 'this' in some way by probably renaming the + // this of the lambda class and having a field member of 'this' or + // by use AT_object_pointer for the function and having that be + // used as 'this' for semantic references. assert(C.capturesThis() && "Field that isn't captured and isn't this?"); FieldDecl *f = *Field; llvm::DIFile VUnit = getOrCreateFile(f->getLocation()); |