llvm-mirror/lib
Bob Wilson 1cf44c8225 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.

llvm-svn: 83176
2009-09-30 22:06:26 +00:00
..
Analysis Add a way for a frontend to generate more complex dwarf location 2009-09-30 00:08:22 +00:00
Archive
AsmParser Only one custom meadata of each kind can be attached with an instruction. 2009-09-29 20:30:57 +00:00
Bitcode Only one custom meadata of each kind can be attached with an instruction. 2009-09-29 20:30:57 +00:00
CodeGen Add a new virtual EmitStartOfAsmFile method to the AsmPrinter and use this 2009-09-30 22:06:26 +00:00
CompilerDriver
Debugger
ExecutionEngine Fix compile error as debug interface changed. 2009-09-30 04:50:26 +00:00
Linker
MC
Support Avoid using mutex locks if not in multithreaded mode by using a SmartScopedMutex 2009-09-27 11:08:03 +00:00
System ... missed hiding a variable for MSVC only. 2009-09-22 16:10:35 +00:00
Target Add a new virtual EmitStartOfAsmFile method to the AsmPrinter and use this 2009-09-30 22:06:26 +00:00
Transforms Fix this code so that it doesn't try to iterate through a std::vector 2009-09-30 20:54:16 +00:00
VMCore Check for null MDNode element while printing comment. 2009-09-30 21:26:51 +00:00
Makefile