diff options
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 5187d3e..b9c7d7a 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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(); |