On Thursday 24 January 2008 08:45:28 Bill Wendling wrote: > Hi Duncan, > > >> GCC barfs this to the .s file directly: > >> > >> .objc_class_name_CrashTestPlugin=0 > >> .globl .objc_class_name_CrashTestPlugin > > > > it looks like you write this directly to a file > > containing LLVM IR. I guess this is OK as long > > as no-one is using the global in the IR (otherwise > > the verifier will barf). Is that the case? > > > This is what I understand to be happening. The GCC version of this > doesn't even create a tree node for these, so it shouldn't be > generating a use of it. I'm taking that to imply that the GCC to LLVM > converter won't create a use of it.
Does this work whether writing LLVM assembler or LLVM bitcode? Ciao, D. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits