From 01eb2a53c7b19737c00ce306a0ac8aaaa849cb3f Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 18 Jul 2013 00:28:05 +0000 Subject: Don't generate bogus line table entries for __copy_helper_block_ and __destroy_helper_block_, but do generate scope information. llvm-svn: 186553 --- clang/lib/CodeGen/CGBlocks.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/lib/CodeGen/CGBlocks.cpp') diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index 3d825d33332..bd97b25555c 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/lib/CodeGen/CGBlocks.cpp @@ -1314,6 +1314,8 @@ CodeGenFunction::GenerateCopyHelperFunction(const CGBlockInfo &blockInfo) { false, false); StartFunction(FD, C.VoidTy, Fn, FI, args, SourceLocation()); + // Don't emit any line table entries for the body of this function. + BuiltinLocation BL(*this, Builder); llvm::Type *structPtrTy = blockInfo.StructureType->getPointerTo(); @@ -1487,6 +1489,8 @@ CodeGenFunction::GenerateDestroyHelperFunction(const CGBlockInfo &blockInfo) { SC_Static, false, false); StartFunction(FD, C.VoidTy, Fn, FI, args, SourceLocation()); + // Don't emit any line table entries for the body of this function. + BuiltinLocation BL(*this, Builder); llvm::Type *structPtrTy = blockInfo.StructureType->getPointerTo(); -- cgit v1.2.3