Index: llvm/include/llvm/MC/MCFragment.h =================================================================== --- llvm/include/llvm/MC/MCFragment.h +++ llvm/include/llvm/MC/MCFragment.h @@ -42,7 +42,7 @@ FT_DwarfFrame, FT_LEB, FT_Padding, - FT_SafeSEH, + FT_SymbolId, FT_CVInlineLines, FT_CVDefRange, FT_Dummy @@ -562,12 +562,12 @@ } }; -class MCSafeSEHFragment : public MCFragment { +class MCSymbolIdFragment : public MCFragment { const MCSymbol *Sym; public: - MCSafeSEHFragment(const MCSymbol *Sym, MCSection *Sec = nullptr) - : MCFragment(FT_SafeSEH, false, 0, Sec), Sym(Sym) {} + MCSymbolIdFragment(const MCSymbol *Sym, MCSection *Sec = nullptr) + : MCFragment(FT_SymbolId, false, 0, Sec), Sym(Sym) {} /// \name Accessors /// @{ @@ -578,7 +578,7 @@ /// @} static bool classof(const MCFragment *F) { - return F->getKind() == MCFragment::FT_SafeSEH; + return F->getKind() == MCFragment::FT_SymbolId; } }; Index: llvm/lib/MC/MCAssembler.cpp =================================================================== --- llvm/lib/MC/MCAssembler.cpp +++ llvm/lib/MC/MCAssembler.cpp @@ -290,7 +290,7 @@ case MCFragment::FT_Padding: return cast(F).getSize(); - case MCFragment::FT_SafeSEH: + case MCFragment::FT_SymbolId: return 4; case MCFragment::FT_Align: { @@ -563,8 +563,8 @@ break; } - case MCFragment::FT_SafeSEH: { - const MCSafeSEHFragment &SF = cast(F); + case MCFragment::FT_SymbolId: { + const MCSymbolIdFragment &SF = cast(F); OW->write32(SF.getSymbol()->getIndex()); break; } Index: llvm/lib/MC/MCFragment.cpp =================================================================== --- llvm/lib/MC/MCFragment.cpp +++ llvm/lib/MC/MCFragment.cpp @@ -281,8 +281,8 @@ case FT_Padding: delete cast(this); return; - case FT_SafeSEH: - delete cast(this); + case FT_SymbolId: + delete cast(this); return; case FT_CVInlineLines: delete cast(this); @@ -326,7 +326,7 @@ case MCFragment::FT_DwarfFrame: OS << "MCDwarfCallFrameFragment"; break; case MCFragment::FT_LEB: OS << "MCLEBFragment"; break; case MCFragment::FT_Padding: OS << "MCPaddingFragment"; break; - case MCFragment::FT_SafeSEH: OS << "MCSafeSEHFragment"; break; + case MCFragment::FT_SymbolId: OS << "MCSymbolIdFragment"; break; case MCFragment::FT_CVInlineLines: OS << "MCCVInlineLineTableFragment"; break; case MCFragment::FT_CVDefRange: OS << "MCCVDefRangeTableFragment"; break; case MCFragment::FT_Dummy: OS << "MCDummyFragment"; break; @@ -436,8 +436,8 @@ OS << "\n "; break; } - case MCFragment::FT_SafeSEH: { - const MCSafeSEHFragment *F = cast(this); + case MCFragment::FT_SymbolId: { + const MCSymbolIdFragment *F = cast(this); OS << "\n "; OS << " Sym:" << F->getSymbol(); break; Index: llvm/lib/MC/MCWinCOFFStreamer.cpp =================================================================== --- llvm/lib/MC/MCWinCOFFStreamer.cpp +++ llvm/lib/MC/MCWinCOFFStreamer.cpp @@ -182,7 +182,7 @@ if (SXData->getAlignment() < 4) SXData->setAlignment(4); - new MCSafeSEHFragment(Symbol, SXData); + new MCSymbolIdFragment(Symbol, SXData); getAssembler().registerSymbol(*Symbol); CSymbol->setIsSafeSEH();