llvm-6502/lib/CodeGen/AsmPrinter
Bob Wilson 812209a58c Add a new virtual EmitStartOfAsmFile method to the AsmPrinter and use this
to emit target-specific things at the beginning of the asm output.  This
fixes a problem for PPC, where the text sections are not being kept together
as expected.  The base class doInitialization code calls DW->BeginModule()
which emits a bunch of DWARF section directives.  The PPC doInitialization
code then emits all the TEXT section directives, with the intention that they
will be kept together. But as I understand it, the Darwin assembler treats
the default TEXT section as a special case and moves it to the beginning of
the file, which means that all those DWARF sections are in the middle of
the text.  With this change, the EmitStartOfAsmFile hook is called before
the DWARF section directives are emitted, so that all the PPC text section
directives come out right at the beginning of the file.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83176 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-30 22:06:26 +00:00
..
AsmPrinter.cpp Add a new virtual EmitStartOfAsmFile method to the AsmPrinter and use this 2009-09-30 22:06:26 +00:00
CMakeLists.txt Fix cmake builds. 2009-05-19 00:18:14 +00:00
DIE.cpp convert the DIE printing stuff to use raw_ostream instead of std::ostream. 2009-08-23 01:01:17 +00:00
DIE.h convert the DIE printing stuff to use raw_ostream instead of std::ostream. 2009-08-23 01:01:17 +00:00
DwarfDebug.cpp Add a way for a frontend to generate more complex dwarf location 2009-09-30 00:08:22 +00:00
DwarfDebug.h Add a way for a frontend to generate more complex dwarf location 2009-09-30 00:08:22 +00:00
DwarfException.cpp --- Reverse-merging r82282 into '.': 2009-09-20 09:13:15 +00:00
DwarfException.h --- Reverse-merging r82282 into '.': 2009-09-20 09:13:15 +00:00
DwarfLabel.cpp convert the DIE printing stuff to use raw_ostream instead of std::ostream. 2009-08-23 01:01:17 +00:00
DwarfLabel.h convert the DIE printing stuff to use raw_ostream instead of std::ostream. 2009-08-23 01:01:17 +00:00
DwarfPrinter.cpp Simply LSDA lable emission to use a direct special-case output instead of 2009-09-01 16:43:35 +00:00
DwarfPrinter.h Simply LSDA lable emission to use a direct special-case output instead of 2009-09-01 16:43:35 +00:00
DwarfWriter.cpp Fix PR4948 (and a leak): by not destroying the DwarfException 2009-09-11 17:24:29 +00:00
Makefile remove dead makefile flags. 2009-06-24 05:29:56 +00:00
OcamlGCPrinter.cpp rename TAI -> MAI, being careful not to make MAILJMP instructions :) 2009-08-22 21:43:10 +00:00