summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/ScanfFormatString.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2015-11-10 18:20:11 +0000
committerTeresa Johnson <tejohnson@google.com>2015-11-10 18:20:11 +0000
commit3cd8161c9ba5caefc37d53f33f9af543addc37f9 (patch)
tree892b1ef9bcb90503bacad1e3035c87dc50d1897f /clang/lib/Analysis/ScanfFormatString.cpp
parent241c31fb646f69260c94f9a9ebacad475d9ff901 (diff)
downloadbcm5719-llvm-3cd8161c9ba5caefc37d53f33f9af543addc37f9.tar.gz
bcm5719-llvm-3cd8161c9ba5caefc37d53f33f9af543addc37f9.zip
[ThinLTO] WeakAny fixes/cleanup
Ensure WeakAny variables are imported as ExternalWeak declarations. To handle WeakAny more consistently and fix this issue: 1) Update helper doImportAsDefinition to properly flag WeakAny variables and aliases as not importing defintions. Update callers of doImportAsDefinition to remove now redundant checks for WeakAny aliases, or ignore aliases, as appropriate. 2) Add any !doImportAsDefinition GVs to DoNotLinkFromSource set during linking of the GV prototype, where we usually add GVs to the DoNotLinkFromSource set for other reasons. Remove now unnecessary adding of WeakAny aliases to DoNotLinkFromSource set from copyGlobalAliasProto. Remove now unnecessary guard against linking non-imported function bodies from ModuleLinker::run. llvm-svn: 252626
Diffstat (limited to 'clang/lib/Analysis/ScanfFormatString.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud