]> granicus.if.org Git - clang/commit
Simplify setting dso_local. NFC.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 23 Feb 2018 00:22:15 +0000 (00:22 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 23 Feb 2018 00:22:15 +0000 (00:22 +0000)
commit3d6fd95e0dd758284c2250607a5a1f910889d23b
tree18c7cccd30dc2bff0629aa76bdff82020d410c01
parentba49d05a74f4b435787d294c2bb383cfc4bd0168
Simplify setting dso_local. NFC.

The value of dso_local can be computed from just IR properties and
global information (object file type, command line options, etc).

With this patch we no longer pass in the Decl. It was almost unused
and making it fully unused guarantees that dso_local is consistent
with the rest of the IR.

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