[lld] r248133 - [ELF2] Implement support for -discard-locals.

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 06:17:54 PDT 2015


> -----Original Message-----
> From: llvm-commits [mailto:llvm-commits-bounces at lists.llvm.org] On Behalf
> Of Simon Atanasyan via llvm-commits
> Sent: 21 September 2015 10:30
> To: Davide Italiano
> Cc: llvm-commits
> Subject: Re: [lld] r248133 - [ELF2] Implement support for -discard-locals.
> 
> On Mon, Sep 21, 2015 at 1:07 AM, Davide Italiano <davide at freebsd.org>
> wrote:
> > On Sun, Sep 20, 2015 at 2:58 PM, Davide Italiano via llvm-commits
> > <llvm-commits at lists.llvm.org> wrote:
> > I really don't like exposing details to consumers -- so I think
> > SymName->startswith(".L") can be replaced by Sym->isTemporaryLocal()
> > or something like that. Are always temporary locals defined as symbols
> > which name starts with ".L" or are there archs/ABIs that have a
> > different definition?
> 
> That might sound unexpectedly but in that case MIPS looks like other
> ELF architectures and uses .L prefix to label temporary locals.
> 
> --
> Simon Atanasyan

It's true that all our ABI's use the '.L' prefix but O32 also allows a '$' prefix.


More information about the llvm-commits mailing list