[AVR] Support aliases in non-zero address space
authorAyke van Laethem <aykevanlaethem@gmail.com>
Sat, 14 Mar 2020 17:52:01 +0000 (18:52 +0100)
committerAyke van Laethem <aykevanlaethem@gmail.com>
Mon, 13 Apr 2020 22:42:19 +0000 (00:42 +0200)
commitcfc002714a208bdbc51fade56141a38fbba26e24
tree882e6262d65f2b14ef1091db66168f50f81a03cf
parent5f7a0301628671b8f4d2c1d9ea90ee723d889a56
[AVR] Support aliases in non-zero address space

This fixes code like the following on AVR:

void foo(void) {
}
void bar(void) __attribute__((alias("foo")));

Code like this is present in compiler-rt, which I'm trying to build.

Differential Revision: https://reviews.llvm.org/D76182
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGen/alias-avr.c [new file with mode: 0644]