[patch] Don't pass a Reloc::Model to MC

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Wed May 18 00:22:22 PDT 2016


On Wed, May 18, 2016 at 3:14 AM, Rafael EspĂ­ndola
<llvm-commits at lists.llvm.org> wrote:
> MC only needs to know if the output is PIC or not. It never has to
> decide about creating GOTs and PLTs for example. The only thing that
> MC itself uses this information for is expanding "macros" in sparc and
> mips. The rest I am pretty sure could be moved to CodeGen.
>
> This is a cleanup and isolates the code from future changes to Reloc::Model.
>

This looks good. Thank you for the cleanup Rafael.

-- 
Davide

"There are no solved problems; there are only problems that are more
or less solved" -- Henri Poincare


More information about the llvm-commits mailing list