aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunctionPass.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-04-21 21:44:25 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-04-21 21:44:25 +0000
commit4d480ed5451e9af88e84bcf8be62f8befa915bed (patch)
tree7aa49ad62bd096bfab59a35543d92be0cce4c473 /llvm/lib/CodeGen/MachineFunctionPass.cpp
parentc34a519407392fd6fc7432719d1ea05bb9a31d0f (diff)
downloadllvm-4d480ed5451e9af88e84bcf8be62f8befa915bed.zip
llvm-4d480ed5451e9af88e84bcf8be62f8befa915bed.tar.gz
llvm-4d480ed5451e9af88e84bcf8be62f8befa915bed.tar.bz2
Internalize linkonce_odr more often.
Since there is a copy in every translation unit that uses them, they can be omitted from the symbol table if the address is not significant. This still doesn't catch as many cases as the gold plugin. The difference is that we check canBeOmittedFromSymbolTable in each file and use lazy loading which limits what it can do. Gold checks it in the merged file. I think the correct way of getting the same results as gold is just to cache in the IR the result of canBeOmittedFromSymbolTable. llvm-svn: 267063
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPass.cpp')
0 files changed, 0 insertions, 0 deletions