]> granicus.if.org Git - clang/commit
Change location information for synthesized properties to be at the
authorEric Christopher <echristo@apple.com>
Tue, 3 Apr 2012 00:44:15 +0000 (00:44 +0000)
committerEric Christopher <echristo@apple.com>
Tue, 3 Apr 2012 00:44:15 +0000 (00:44 +0000)
commitea32047660159811a4c14d008a4b7e3807a705d6
treed0659e6eda48db6f2d75e788f34d539393f0de85
parent31b57628576a2355428fd4b57f828a3aa8423000
Change location information for synthesized properties to be at the
property file/line rather than the @synthesize file/line. Avoids
some nasty confusing-ness with conflating the file from the scope
and the line from the original declaration. Use    the current scope
location as a separate parameter so that we can    match it up
better in the line table with the beginning of the scope.

Update a couple of testcases accordingly since I had to change
that we actually use the passed in location in EmitFunctionStart
and for the new metadata parameter and add a new testcase to
make sure we've got the right line numbers for synthesized
properties.

Part of rdar://11026482

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153917 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGObjC.cpp
test/CodeGenCXX/debug-info-artificial-arg.cpp
test/CodeGenObjC/debug-info-block-helper.m
test/CodeGenObjC/debug-info-synthesis.m [new file with mode: 0644]
test/CodeGenObjC/debug-property-synth.m