diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-09-19 19:43:18 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-09-19 19:43:18 +0000 |
commit | 2ae4b631fc82698f771bc53bbcd971f3673212ef (patch) | |
tree | 01091f762401265885e5954f15aec2bc21e410e0 /lldb/test/functionalities/object-file/TestImageListMultiArchitecture.py | |
parent | 0fd6fd4fd45be23c885f6fa0654c780773ce9517 (diff) | |
download | bcm5719-llvm-2ae4b631fc82698f771bc53bbcd971f3673212ef.tar.gz bcm5719-llvm-2ae4b631fc82698f771bc53bbcd971f3673212ef.zip |
In the Itanium ABI, move stuff to the comdat of variables with static init.
Clang can already handle
-------------------------------------------
struct S {
static const int x;
};
template<typename T> struct U {
static const int k;
};
template<typename T> const int U<T>::k = T::x;
const int S::x = 42;
extern const int *f();
const int *g() { return &U<S>::k; }
int main() {
return *f() + U<S>::k;
}
const int *f() { return &U<S>::k; }
-------------------------------------------
since r217264 which puts the .inint_array section in the same COMDAT
as the variable.
This patch allows the linker to more easily delete some dead code and data by
putting the guard variable and init function in the same COMDAT.
This is a fixed version of r218089.
llvm-svn: 218141
Diffstat (limited to 'lldb/test/functionalities/object-file/TestImageListMultiArchitecture.py')
0 files changed, 0 insertions, 0 deletions