mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Remove redundant calls to isMaterializable.
This removes calls to isMaterializable in the following cases: * It was redundant with a call to isDeclaration now that isDeclaration returns the correct answer for materializable functions. * It was followed by a call to Materialize. Just call Materialize and check EC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221050 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -377,8 +377,8 @@ void Verifier::visit(Instruction &I) {
|
||||
|
||||
|
||||
void Verifier::visitGlobalValue(const GlobalValue &GV) {
|
||||
Assert1(!GV.isDeclaration() || GV.isMaterializable() ||
|
||||
GV.hasExternalLinkage() || GV.hasExternalWeakLinkage(),
|
||||
Assert1(!GV.isDeclaration() || GV.hasExternalLinkage() ||
|
||||
GV.hasExternalWeakLinkage(),
|
||||
"Global is external, but doesn't have external or weak linkage!",
|
||||
&GV);
|
||||
|
||||
|
Reference in New Issue
Block a user