llvm-6502/test/MC/PowerPC
Ulrich Weigand c1f4a4b264 [MC/DWARF] Support .debug_frame / .debug_line code alignment factors
I've been comparing the object file output of LLVM's integrated
assembler against the external assembler on PowerPC, and one
area where differences still remain are in DWARF sections.

In particular, the GNU assembler generates .debug_frame and
.debug_line sections using a code alignment factor of 4, since
all PowerPC instructions have size 4 and must be aligned to a
multiple of 4.  However, current MC code hard-codes a code
alignment factor of 1.

This patch changes this by adding a "minimum instruction alignment"
data element to MCAsmInfo and using this as code alignment factor.

This requires passing a MCContext into MCDwarfLineAddr::Encode
and MCDwarfLineAddr::EncodeAdvanceLoc.  Note that one caller,
MCDwarfLineAddr::Write, didn't actually have that information
available.  However, it turns out that this routine is in fact
never used in the whole code base, so the patch simply removes
it.  If it turns out to be needed again at a later time, it
could be re-added with an updated interface.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183834 91177308-0d34-0410-b5e6-96231b3b80d8
2013-06-12 14:46:54 +00:00
..
lit.local.cfg
ppc64-encoding-bookII.s [PowerPC] Add some Book II instructions to AsmParser 2013-05-03 19:51:09 +00:00
ppc64-encoding-ext.s [PowerPC] Support branch mnemonics with implied CR0 2013-06-10 17:19:15 +00:00
ppc64-encoding-fp.s [PowerPC] Add assembler parser 2013-05-03 19:49:39 +00:00
ppc64-encoding-vmx.s [PowerPC] Add assembler parser 2013-05-03 19:49:39 +00:00
ppc64-encoding.s [PowerPC] Support extended sc mnemonic 2013-06-10 17:19:43 +00:00
ppc64-errors.s [PowerPC] Add assembler parser 2013-05-03 19:49:39 +00:00
ppc64-fixup-apply.s [PowerPC] Fix processing of ha16/lo16 fixups 2013-05-17 12:36:29 +00:00
ppc64-fixups.s [PowerPC] Merge/rename PPC fixup types 2013-05-17 12:37:21 +00:00
ppc64-initial-cfa.s [MC/DWARF] Support .debug_frame / .debug_line code alignment factors 2013-06-12 14:46:54 +00:00
ppc64-operands.s [PowerPC] Add assembler parser 2013-05-03 19:49:39 +00:00
ppc64-relocs-01.s [PowerPC] Use assembler source in MC tests 2013-06-12 14:14:18 +00:00
ppc64-tls-relocs-01.s [PowerPC] Use assembler source in MC tests 2013-06-12 14:14:18 +00:00