(void)NameRef;
assert(NameRef[0] == '\01' && (NameRef[1] == 'L' || NameRef[1] == 'l'));
assert(GV->getVisibility() == llvm::GlobalValue::DefaultVisibility);
- assert(GV->getLinkage() == llvm::GlobalValue::PrivateLinkage);
+ assert(GV->hasPrivateLinkage());
}
/*
if (Entry) {
// Already created, update the initializer.
- assert(Entry->getLinkage() == llvm::GlobalValue::PrivateLinkage);
+ assert(Entry->hasPrivateLinkage());
Entry->setInitializer(Init);
} else {
Entry =
if (Entry) {
// Already created, update the initializer.
- assert(Entry->getLinkage() == llvm::GlobalValue::WeakAnyLinkage);
+ assert(Entry->hasWeakAnyLinkage());
Entry->setInitializer(Init);
} else {
Entry =
std::string ClassName(getClassSymbolPrefix() + ID->getNameAsString());
llvm::GlobalVariable *ClassGV = GetClassGlobal(ClassName, true);
(void)ClassGV;
- assert(ClassGV->getLinkage() == llvm::GlobalValue::ExternalWeakLinkage);
+ assert(ClassGV->hasExternalWeakLinkage());
}
return EmitClassRef(CGF, ID);