Add a line number for the scope of the function (starting at the first

brace) so that we get more accurate line number information about the
declaration of a given function and the line where the function
first starts.

Part of rdar://11026482

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153916 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher
2012-04-03 00:43:49 +00:00
parent 2e267ae7b8
commit 6126a1e189
6 changed files with 29 additions and 5 deletions
+3
View File
@@ -787,6 +787,9 @@ void DISubprogram::print(raw_ostream &OS) const {
if (isDefinition())
OS << " [def] ";
if (getScopeLineNumber() != getLineNumber())
OS << " [Scope: " << getScopeLineNumber() << "] ";
OS << "\n";
}