| 2869 | } |
| 2870 | |
| 2871 | static void inferDSOLocal(GlobalValue *GV) { |
| 2872 | // infer dso_local from linkage and visibility if it is not encoded. |
| 2873 | if (GV->hasLocalLinkage() || |
| 2874 | (!GV->hasDefaultVisibility() && !GV->hasExternalWeakLinkage())) |
| 2875 | GV->setDSOLocal(true); |
| 2876 | } |
| 2877 | |
| 2878 | Error BitcodeReader::parseGlobalVarRecord(ArrayRef<uint64_t> Record) { |
| 2879 | // v1: [pointer type, isconst, initid, linkage, alignment, section, |
no test coverage detected