[all-commits] [llvm/llvm-project] eca4bf: [MC] Pull out a relaxFragment helper [NFC]

Philip Reames via All-commits all-commits at lists.llvm.org
Wed Feb 26 13:37:20 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: eca4bfea3d380f56652a19bfe4746663601050cb
      https://github.com/llvm/llvm-project/commit/eca4bfea3d380f56652a19bfe4746663601050cb
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2020-02-26 (Wed, 26 Feb 2020)

  Changed paths:
    M llvm/include/llvm/MC/MCAssembler.h
    M llvm/lib/MC/MCAssembler.cpp

  Log Message:
  -----------
  [MC] Pull out a relaxFragment helper [NFC]

Having this as it's own function helps to reduce indentation and allows use of return instead of wiring a value over the switch.  A lambda would have also worked, but with slightly deeper nesting.




More information about the All-commits mailing list