[llvm-commits] RFC: internal label names

Dan Gohman djg at cray.com
Wed Oct 10 12:41:18 PDT 2007


>> My only concern is it won't look as pleasant if the function name is
>> long.
> 
> Which happens with C++ mangled names all the time :(
> 
> a potentially solution to this (which may be over complex :) is to  
> have two options:
> 
> 1. if the name is short, print it as you propose.
> 2. if the name is long, print it with a number and optionally with a  
> subset of the name (last 10 chars?)
> 
> This could be implemented by just adding a new ivar like  
> CurrentFunctionName that holds this.

I think that is over complex :). C++ mangled names are ok with me here,
but if they're unpleasant for others that's fine.

Dan

-- 
Dan Gohman, Cray Inc.



More information about the llvm-commits mailing list