Lines Matching refs:global_variable
1056 GlobalVariable *global_variable = dyn_cast<GlobalVariable>(value); in IsObjCSelectorRef() local
1058 …if (!global_variable || !global_variable->hasName() || !global_variable->getName().startswith("\01… in IsObjCSelectorRef()
1428 IRForTarget::MaterializeInternalVariable (GlobalVariable *global_variable) in MaterializeInternalVariable() argument
1430 if (GlobalVariable::isExternalLinkage(global_variable->getLinkage())) in MaterializeInternalVariable()
1433 if (global_variable == m_reloc_placeholder) in MaterializeInternalVariable()
1438 llvm::Type *variable_type = global_variable->getType(); in MaterializeInternalVariable()
1440 Constant *initializer = global_variable->getInitializer(); in MaterializeInternalVariable()
1462 global_variable->replaceAllUsesWith(new_pointer); in MaterializeInternalVariable()
1464 global_variable->eraseFromParent(); in MaterializeInternalVariable()
1491 else if (GlobalVariable *global_variable = dyn_cast<GlobalVariable>(llvm_value_ptr)) in MaybeHandleVariable() local
1493 if (!GlobalValue::isExternalLinkage(global_variable->getLinkage())) in MaybeHandleVariable()
1494 return MaterializeInternalVariable(global_variable); in MaybeHandleVariable()
1496 clang::NamedDecl *named_decl = DeclForGlobal(global_variable); in MaybeHandleVariable()
1503 if (!global_variable->hasExternalLinkage()) in MaybeHandleVariable()
1507 …log->Printf("Found global variable \"%s\" without metadata", global_variable->getName().str().c_st… in MaybeHandleVariable()
1534 value_type = PointerType::get(global_variable->getType(), 0); in MaybeHandleVariable()
1538 value_type = global_variable->getType(); in MaybeHandleVariable()
1561 if (!global_variable->hasExternalLinkage()) in MaybeHandleVariable()
1563 else if (HandleSymbol (global_variable)) in MaybeHandleVariable()
1644 GlobalVariable *global_variable = dyn_cast<GlobalVariable>(classlist_reference); in HandleObjCClass() local
1646 if (!global_variable) in HandleObjCClass()
1649 Constant *initializer = global_variable->getInitializer(); in HandleObjCClass()
1667 if (global_variable->use_begin() == global_variable->use_end()) in HandleObjCClass()
1672 for (Value::use_iterator i = global_variable->use_begin(), e = global_variable->use_end(); in HandleObjCClass()