[llvm] r340113 - MC: Remove dead code from WinCOFFObjectWriter.cpp. NFCI.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 17 17:54:46 PDT 2018
Author: pcc
Date: Fri Aug 17 17:54:46 2018
New Revision: 340113
URL: http://llvm.org/viewvc/llvm-project?rev=340113&view=rev
Log:
MC: Remove dead code from WinCOFFObjectWriter.cpp. NFCI.
Remove code for writing auxiliary symbols of type function definition
and begin function. These types of symbols are associated with
pre-CodeView debug info and we never emit them.
Modified:
llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp?rev=340113&r1=340112&r2=340113&view=diff
==============================================================================
--- llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp Fri Aug 17 17:54:46 2018
@@ -58,8 +58,6 @@ namespace {
using name = SmallString<COFF::NameSize>;
enum AuxiliaryType {
- ATFunctionDefinition,
- ATbfAndefSymbol,
ATWeakExternal,
ATFile,
ATSectionDefinition
@@ -515,24 +513,6 @@ void WinCOFFObjectWriter::WriteAuxiliary
const COFFSymbol::AuxiliarySymbols &S) {
for (const AuxSymbol &i : S) {
switch (i.AuxType) {
- case ATFunctionDefinition:
- W.write<uint32_t>(i.Aux.FunctionDefinition.TagIndex);
- W.write<uint32_t>(i.Aux.FunctionDefinition.TotalSize);
- W.write<uint32_t>(i.Aux.FunctionDefinition.PointerToLinenumber);
- W.write<uint32_t>(i.Aux.FunctionDefinition.PointerToNextFunction);
- W.OS.write_zeros(sizeof(i.Aux.FunctionDefinition.unused));
- if (UseBigObj)
- W.OS.write_zeros(COFF::Symbol32Size - COFF::Symbol16Size);
- break;
- case ATbfAndefSymbol:
- W.OS.write_zeros(sizeof(i.Aux.bfAndefSymbol.unused1));
- W.write<uint16_t>(i.Aux.bfAndefSymbol.Linenumber);
- W.OS.write_zeros(sizeof(i.Aux.bfAndefSymbol.unused2));
- W.write<uint32_t>(i.Aux.bfAndefSymbol.PointerToNextFunction);
- W.OS.write_zeros(sizeof(i.Aux.bfAndefSymbol.unused3));
- if (UseBigObj)
- W.OS.write_zeros(COFF::Symbol32Size - COFF::Symbol16Size);
- break;
case ATWeakExternal:
W.write<uint32_t>(i.Aux.WeakExternal.TagIndex);
W.write<uint32_t>(i.Aux.WeakExternal.Characteristics);
More information about the llvm-commits
mailing list