MCPcopy Create free account
hub / github.com/GANGE666/xVMP / inferDSOLocal

Function inferDSOLocal

src/lib/Bitcode/Reader/BitcodeReader.cpp:2871–2876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2869}
2870
2871static 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
2878Error BitcodeReader::parseGlobalVarRecord(ArrayRef<uint64_t> Record) {
2879 // v1: [pointer type, isconst, initid, linkage, alignment, section,

Callers 3

parseGlobalVarRecordMethod · 0.85
parseFunctionRecordMethod · 0.85

Calls 4

hasLocalLinkageMethod · 0.80
hasDefaultVisibilityMethod · 0.80
setDSOLocalMethod · 0.45

Tested by

no test coverage detected