[PATCH] Make global aliases have symbol size equal to their type

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Jun 30 07:24:37 PDT 2015


Why do you need to print the .size in the assembly? The assembler
itself (MC/gas) propagates the size.

On 30 June 2015 at 10:22, John Brawn <john.brawn at arm.com> wrote:
> Hi rafael, ab, t.p.northover,
>
> This is mainly for the benefit of GlobalMerge, so that an alias into a MergedGlobals variable has the same size as the original non-merged variable.
>
> REPOSITORY
>   rL LLVM
>
> http://reviews.llvm.org/D10837
>
> Files:
>   lib/CodeGen/AsmPrinter/AsmPrinter.cpp
>   test/CodeGen/AArch64/global-merge-2.ll
>   test/CodeGen/AArch64/global-merge-3.ll
>   test/CodeGen/ARM/aliases.ll
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/



More information about the llvm-commits mailing list