Index: lib/MC/MCDwarf.cpp =================================================================== --- lib/MC/MCDwarf.cpp +++ lib/MC/MCDwarf.cpp @@ -783,7 +783,7 @@ // The DW_TAG_label DIE abbrev (2). MCOS->EmitULEB128IntValue(2); - // AT_name, of the label without any leading underbar. + // AT_name, of the label. MCOS->EmitBytes(Entry.getName()); MCOS->EmitIntValue(0, 1); // NULL byte to terminate the string. @@ -937,11 +937,7 @@ if (!context.getGenDwarfSectionSyms().count(MCOS->getCurrentSectionOnly())) return; - // The dwarf label's name does not have the symbol name's leading - // underbar if any. StringRef Name = Symbol->getName(); - if (Name.startswith("_")) - Name = Name.substr(1, Name.size()-1); // Get the dwarf file number to be used for the dwarf label. unsigned FileNumber = context.getGenDwarfFileNumber();