[AVR] Use 1-byte alignment for all data types
authorDylan McKay <me@dylanmckay.io>
Tue, 26 Sep 2017 00:45:27 +0000 (00:45 +0000)
committerDylan McKay <me@dylanmckay.io>
Tue, 26 Sep 2017 00:45:27 +0000 (00:45 +0000)
commit832c4a65c0b22f9e88374703db1064f8a7d7a7d4
tree2cdbc2bac4f7db21ee3034245cf108d14bcc3306
parent54f689327964b18993d0b6f363393a1bba7210ae
[AVR] Use 1-byte alignment for all data types

This was an oversight in the original backend data layout.

The AVR architecture does not have the concept of unaligned loads - all
loads/stores from all addresses are aligned to one byte.

Discovered in avr-rust issue #64
https://github.com/avr-rust/rust/issues/64

Patch By Gergo Erdi.

llvm-svn: 314179
llvm/lib/Target/AVR/AVRTargetMachine.cpp