Emit the string information for the asm writer as a single large string
authorChris Lattner <sabre@nondot.org>
Fri, 14 Jul 2006 22:59:11 +0000 (22:59 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 14 Jul 2006 22:59:11 +0000 (22:59 +0000)
commit6af022f255257bee7c6d6903ff4caa2217d51502
treedd1b689c75e8d7372b67adc5372c2550946fa57c
parent53eca9466f5dc10bba86f94fa1a55a1e8f36baf2
Emit the string information for the asm writer as a single large string
and index into it, instead of emitting it like this:

  static const char * const OpStrs[] = {
    "PHINODE\n",        // PHI
    0,  // INLINEASM
    "adc ",     // ADC32mi
    "adc ",     // ADC32mi8
   ...

The old way required thousands of relocations that slows down link time and
dynamic load times.

This also cuts about 10K off each of the X86 asmprinters, and should shrink
the others as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29152 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/AsmWriterEmitter.cpp