[BOLT][NFC] Move addRelocation{X86,AArch64} into MCPlusBuilder
authorAmir Ayupov <aaupov@fb.com>
Wed, 15 Mar 2023 00:29:23 +0000 (17:29 -0700)
committerAmir Ayupov <aaupov@fb.com>
Wed, 15 Mar 2023 00:34:25 +0000 (17:34 -0700)
commitedda85771a5cbcc99920908774a93199677f659f
tree6ce21e42e0c44ad0d5b61bc9ee7d86bcde2fe6ac
parentcb45be2b4f62f93493db9c95c66b452b2faa178f
[BOLT][NFC] Move addRelocation{X86,AArch64} into MCPlusBuilder

The two methods don't belong in BinaryFunction methods.
Move the dispatch tables into target-specific MCPlusBuilder methods.

Reviewed By: rafauler

Differential Revision: https://reviews.llvm.org/D131813
bolt/include/bolt/Core/BinaryFunction.h
bolt/include/bolt/Core/MCPlusBuilder.h
bolt/lib/Core/BinaryFunction.cpp
bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
bolt/lib/Target/X86/X86MCPlusBuilder.cpp