summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-07-18 00:28:05 +0000
committerAdrian Prantl <aprantl@apple.com>2013-07-18 00:28:05 +0000
commit01eb2a53c7b19737c00ce306a0ac8aaaa849cb3f (patch)
treee29a29038f1bc558222a788365a72efaa8114887 /clang/lib/CodeGen
parent2e0637ff63213e1b6b81271ba2a8c94819b9ac0c (diff)
downloadbcm5719-llvm-01eb2a53c7b19737c00ce306a0ac8aaaa849cb3f.tar.gz
bcm5719-llvm-01eb2a53c7b19737c00ce306a0ac8aaaa849cb3f.zip
Don't generate bogus line table entries for __copy_helper_block_ and
__destroy_helper_block_, but do generate scope information. llvm-svn: 186553
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp4
1 files changed, 4 insertions, 0 deletions
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();
OpenPOWER on IntegriCloud