[BOLT][NFC] Move out handleExternalReference
authorAmir Ayupov <aaupov@fb.com>
Tue, 23 Aug 2022 23:07:52 +0000 (16:07 -0700)
committerAmir Ayupov <aaupov@fb.com>
Wed, 24 Aug 2022 00:36:41 +0000 (17:36 -0700)
commitec1fbf229efec1f18aeac3048f9cb92f352f1756
tree9655e6437ad982f1589a7ad45166853fbed50d5d
parent6cd475f8caaf96bc6856541cc650a804ad3f7111
[BOLT][NFC] Move out handleExternalReference

Move the large lambda out of BinaryFunction::disassemble, reducing its size from
338 to 295 LoC.

Reviewed By: rafauler

Differential Revision: https://reviews.llvm.org/D132100
bolt/include/bolt/Core/BinaryFunction.h
bolt/lib/Core/BinaryFunction.cpp