]> granicus.if.org Git - clang/commit
Always set dso_local in CodeGenModule::setDSOLocal.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 2 Mar 2018 01:29:51 +0000 (01:29 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 2 Mar 2018 01:29:51 +0000 (01:29 +0000)
commit808bfc831736f774e793b85f64e33d4899837dd6
treefbde94492385d6ff424fae46f5f7c98faa2cd99e
parent5d3eb81ee5b6730fb1cd18b240907822932b838b
Always set dso_local in CodeGenModule::setDSOLocal.

This shouldn't change any results for now, but is more consistent with
how we set dllimport/dllexport and will make future changes easier.

Since clang produces IR as it parses, it can find out mid file that
something is dllimport. When that happens we have to drop
dso_local. This is not a problem right now because
CodeGenModule::setDSOLocal is called from relatively few places at
the moment.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326527 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp