[llvm-commits] [llvm] r54028 - /llvm/trunk/lib/VMCore/Verifier.cpp
Nate Begeman
natebegeman at mac.com
Fri Jul 25 10:28:23 PDT 2008
Author: sampo
Date: Fri Jul 25 12:28:23 2008
New Revision: 54028
URL: http://llvm.org/viewvc/llvm-project?rev=54028&view=rev
Log:
Allow verifier to be run on partially materialized modules.
Modified:
llvm/trunk/lib/VMCore/Verifier.cpp
Modified: llvm/trunk/lib/VMCore/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Verifier.cpp?rev=54028&r1=54027&r2=54028&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Verifier.cpp (original)
+++ llvm/trunk/lib/VMCore/Verifier.cpp Fri Jul 25 12:28:23 2008
@@ -332,6 +332,7 @@
GV.hasExternalLinkage() ||
GV.hasDLLImportLinkage() ||
GV.hasExternalWeakLinkage() ||
+ GV.hasGhostLinkage() ||
(isa<GlobalAlias>(GV) &&
(GV.hasInternalLinkage() || GV.hasWeakLinkage())),
"Global is external, but doesn't have external or dllimport or weak linkage!",
@@ -510,7 +511,7 @@
if (F.isDeclaration()) {
Assert1(F.hasExternalLinkage() || F.hasDLLImportLinkage() ||
- F.hasExternalWeakLinkage(),
+ F.hasExternalWeakLinkage() || F.hasGhostLinkage(),
"invalid linkage type for function declaration", &F);
} else {
// Verify that this function (which has a body) is not named "llvm.*". It
More information about the llvm-commits
mailing list