mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
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:
@@ -787,6 +787,9 @@ void DISubprogram::print(raw_ostream &OS) const {
|
||||
if (isDefinition())
|
||||
OS << " [def] ";
|
||||
|
||||
if (getScopeLineNumber() != getLineNumber())
|
||||
OS << " [Scope: " << getScopeLineNumber() << "] ";
|
||||
|
||||
OS << "\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user