diff options
Diffstat (limited to 'lib/MC/MCParser/AsmParser.cpp')
| -rw-r--r-- | lib/MC/MCParser/AsmParser.cpp | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index 501a1cccf60e..d88c6f76826f 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -3348,17 +3348,17 @@ bool AsmParser::parseDirectiveFile(SMLoc DirectiveLoc) {      }    } -  // In case there is a -g option as well as debug info from directive .file, -  // we turn off the -g option, directly use the existing debug info instead. -  // Also reset any implicit ".file 0" for the assembler source. -  if (Ctx.getGenDwarfForAssembly()) { -    Ctx.getMCDwarfLineTable(0).resetRootFile(); -    Ctx.setGenDwarfForAssembly(false); -  } -    if (FileNumber == -1)      getStreamer().EmitFileDirective(Filename);    else { +    // In case there is a -g option as well as debug info from directive .file, +    // we turn off the -g option, directly use the existing debug info instead. +    // Also reset any implicit ".file 0" for the assembler source. +    if (Ctx.getGenDwarfForAssembly()) { +      Ctx.getMCDwarfLineTable(0).resetRootFile(); +      Ctx.setGenDwarfForAssembly(false); +    } +      MD5::MD5Result *CKMem = nullptr;      if (HasMD5) {        CKMem = (MD5::MD5Result *)Ctx.allocate(sizeof(MD5::MD5Result), 1); | 
