mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Don't generate Dwarf line table entries for source line 0.
llvm-svn: 81542
This commit is contained in:
parent
c0ef7f109b
commit
9584af22be
@ -494,6 +494,10 @@ void DwarfDebug::AddSourceLine(DIE *Die, const DISubprogram *SP) {
|
||||
// If there is no compile unit specified, don't add a line #.
|
||||
if (SP->getCompileUnit().isNull())
|
||||
return;
|
||||
// If the line number is 0, don't add it.
|
||||
if (SP->getLineNumber() == 0)
|
||||
return;
|
||||
|
||||
|
||||
unsigned Line = SP->getLineNumber();
|
||||
unsigned FileID = FindCompileUnit(SP->getCompileUnit()).getID();
|
||||
@ -2394,6 +2398,8 @@ void DwarfDebug::EmitDebugLines() {
|
||||
unsigned LabelID = MMI->MappedLabel(LineInfo.getLabelID());
|
||||
if (!LabelID) continue;
|
||||
|
||||
if (LineInfo.getLine() == 0) continue;
|
||||
|
||||
if (!Asm->isVerbose())
|
||||
Asm->EOL();
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user