[PATCH] D47391: [COFF] Simplify symbol table output section computation

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 29 13:50:36 PDT 2018


pcc added inline comments.


================
Comment at: COFF/Writer.cpp:638
 
   switch (Def->kind()) {
   case Symbol::DefinedAbsoluteKind:
----------------
Can we move this switch to the top of the function? Then the only code that needs to care about output sections will be in the default case of the switch.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D47391





More information about the llvm-commits mailing list