]> granicus.if.org Git - clang/commit
CodeGen: Refactor linkage/visibility calculation
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 25 Apr 2014 17:07:16 +0000 (17:07 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 25 Apr 2014 17:07:16 +0000 (17:07 +0000)
commit6ccd636affd35065d7c34cb827c36a999a39b535
treec5426001bd9e215fc005a39eab2a64c5a73715d3
parent266c0c986eb43ba113b3653e2c996af3ca257713
CodeGen: Refactor linkage/visibility calculation

It turns out that linkage and visibility have rather similar logic for
both functions and non-variable globals.  Split the calculation out so
that both sides may share this code.

No functionality change.

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