mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
Technically DIFile scope should also be handled here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117563 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c0ddfaa134
commit
3cabc9d2c9
@ -3024,6 +3024,10 @@ MCSymbol *DwarfDebug::recordSourceLine(unsigned Line, unsigned Col,
|
|||||||
DICompileUnit CU(S);
|
DICompileUnit CU(S);
|
||||||
Dir = CU.getDirectory();
|
Dir = CU.getDirectory();
|
||||||
Fn = CU.getFilename();
|
Fn = CU.getFilename();
|
||||||
|
} else if (Scope.isFile()) {
|
||||||
|
DIFile F(S);
|
||||||
|
Dir = F.getDirectory();
|
||||||
|
Fn = F.getFilename();
|
||||||
} else if (Scope.isSubprogram()) {
|
} else if (Scope.isSubprogram()) {
|
||||||
DISubprogram SP(S);
|
DISubprogram SP(S);
|
||||||
Dir = SP.getDirectory();
|
Dir = SP.getDirectory();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user