aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-01-16 17:05:09 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-01-16 17:05:09 +0000
commit751677a0409ed782d44c4e98f14bf52479911c23 (patch)
tree537879d2f123de511c78a797ec90793dc831fee7 /clang/lib/CodeGen/CodeGenModule.cpp
parent811975d59e294ab619ec8905eaf6b879c1d280cb (diff)
downloadllvm-751677a0409ed782d44c4e98f14bf52479911c23.zip
llvm-751677a0409ed782d44c4e98f14bf52479911c23.tar.gz
llvm-751677a0409ed782d44c4e98f14bf52479911c23.tar.bz2
Don't merge two constants if we care about the address of both.
This fixes the original testcase in PR8927. It also causes a clang binary built with a patched clang to increase in size by 0.21%. We can probably get some of the size back by writing a pass that detects that a global never has its pointer compared and adds unnamed_addr to it (maybe extend global opt). It is also possible that there are some other cases clang could add unnamed_addr to. I will investigate extending globalopt next. llvm-svn: 123584
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions