[llvm-commits] [llvm] r55973 - in /llvm/trunk: include/llvm/Target/TargetAsmInfo.h lib/CodeGen/AsmPrinter/AsmPrinter.cpp lib/Target/ARM/ARMTargetAsmInfo.cpp lib/Target/PowerPC/PPCTargetAsmInfo.cpp lib/Target/TargetAsmInfo.cpp lib/Target/X86/X86Ta

Anton Korobeynikov anton at korobeynikov.info
Tue Sep 9 01:02:42 PDT 2008


Hi, Dale

> the magic 'l' prefix for symbols on Darwin which are
> to be passed through the assembler, then removed at
> linktime (previously all references to this had been
> hidden in the ObjC FE code, oh well).
Sorry for bothering you again, but changing semantics of llvm.used in
such target- and language- specific way is a bit... uhm...
questionable.

I know, that objc fe is very fragile, but can't it be fixed in such
way? Also, could you please show and example, when the change you
introduced is needed?
If fe cannot be fixed, why don't leave generic code in place and just
override it in asmprinters? I think you can introduce new hook inside
DarwinTargetAssemblerInfo to control 'dead code stripping directive
emission' and handle everything without need to introduce some
objc-related things into generic TAI.

Does this sound reasonable?
-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-commits mailing list