mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
Allow verifier to be run on partially materialized modules.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54028 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -332,6 +332,7 @@ void Verifier::visitGlobalValue(GlobalValue &GV) {
|
|||||||
GV.hasExternalLinkage() ||
|
GV.hasExternalLinkage() ||
|
||||||
GV.hasDLLImportLinkage() ||
|
GV.hasDLLImportLinkage() ||
|
||||||
GV.hasExternalWeakLinkage() ||
|
GV.hasExternalWeakLinkage() ||
|
||||||
|
GV.hasGhostLinkage() ||
|
||||||
(isa<GlobalAlias>(GV) &&
|
(isa<GlobalAlias>(GV) &&
|
||||||
(GV.hasInternalLinkage() || GV.hasWeakLinkage())),
|
(GV.hasInternalLinkage() || GV.hasWeakLinkage())),
|
||||||
"Global is external, but doesn't have external or dllimport or weak linkage!",
|
"Global is external, but doesn't have external or dllimport or weak linkage!",
|
||||||
@@ -510,7 +511,7 @@ void Verifier::visitFunction(Function &F) {
|
|||||||
|
|
||||||
if (F.isDeclaration()) {
|
if (F.isDeclaration()) {
|
||||||
Assert1(F.hasExternalLinkage() || F.hasDLLImportLinkage() ||
|
Assert1(F.hasExternalLinkage() || F.hasDLLImportLinkage() ||
|
||||||
F.hasExternalWeakLinkage(),
|
F.hasExternalWeakLinkage() || F.hasGhostLinkage(),
|
||||||
"invalid linkage type for function declaration", &F);
|
"invalid linkage type for function declaration", &F);
|
||||||
} else {
|
} else {
|
||||||
// Verify that this function (which has a body) is not named "llvm.*". It
|
// Verify that this function (which has a body) is not named "llvm.*". It
|
||||||
|
Reference in New Issue
Block a user