mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-06 03:38:34 +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);
|
||||
Dir = CU.getDirectory();
|
||||
Fn = CU.getFilename();
|
||||
} else if (Scope.isFile()) {
|
||||
DIFile F(S);
|
||||
Dir = F.getDirectory();
|
||||
Fn = F.getFilename();
|
||||
} else if (Scope.isSubprogram()) {
|
||||
DISubprogram SP(S);
|
||||
Dir = SP.getDirectory();
|
||||
|
Loading…
Reference in New Issue
Block a user