[MC] Pull out a relaxFragment helper [NFC]
authorPhilip Reames <listmail@philipreames.com>
Wed, 26 Feb 2020 21:29:07 +0000 (13:29 -0800)
committerPhilip Reames <listmail@philipreames.com>
Wed, 26 Feb 2020 21:37:12 +0000 (13:37 -0800)
commiteca4bfea3d380f56652a19bfe4746663601050cb
tree5f309b032d79425dec75fef293000701221835a1
parentf79b81fbe2870ff631ad72a75f7e077b15b52a22
[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.
llvm/include/llvm/MC/MCAssembler.h
llvm/lib/MC/MCAssembler.cpp