mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Use SP filename directly instead of SP's context's filename.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99429 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
69631b1327
commit
9bb59a2bdc
@ -447,8 +447,8 @@ void DwarfDebug::addSourceLine(DIE *Die, const DISubprogram *SP) {
|
||||
unsigned Line = SP->getLineNumber();
|
||||
if (!SP->getContext().Verify())
|
||||
return;
|
||||
unsigned FileID = GetOrCreateSourceID(SP->getContext().getDirectory(),
|
||||
SP->getContext().getFilename());
|
||||
unsigned FileID = GetOrCreateSourceID(SP->getDirectory(),
|
||||
SP->getFilename());
|
||||
assert(FileID && "Invalid file id");
|
||||
addUInt(Die, dwarf::DW_AT_decl_file, 0, FileID);
|
||||
addUInt(Die, dwarf::DW_AT_decl_line, 0, Line);
|
||||
|
Loading…
Reference in New Issue
Block a user