[llvm-commits] CVS: llvm/lib/VMCore/Verifier.cpp
Chris Lattner
sabre at nondot.org
Tue Dec 12 20:46:01 PST 2006
Changes in directory llvm/lib/VMCore:
Verifier.cpp updated: 1.172 -> 1.173
---
Log message:
only check non-external functions
---
Diffs of the changes: (+6 -6)
Verifier.cpp | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
Index: llvm/lib/VMCore/Verifier.cpp
diff -u llvm/lib/VMCore/Verifier.cpp:1.172 llvm/lib/VMCore/Verifier.cpp:1.173
--- llvm/lib/VMCore/Verifier.cpp:1.172 Tue Dec 12 22:30:37 2006
+++ llvm/lib/VMCore/Verifier.cpp Tue Dec 12 22:45:46 2006
@@ -334,12 +334,6 @@
F.getReturnType() == Type::VoidTy,
"Functions cannot return aggregate values!", &F);
- // Verify that this function (which has a body) is not named "llvm.*". It
- // is not legal to define intrinsics.
- if (F.getName().size() >= 5)
- Assert1(F.getName().substr(0, 5) != "llvm.",
- "llvm intrinsics cannot be defined!", &F);
-
// Check that this function meets the restrictions on this calling convention.
switch (F.getCallingConv()) {
default:
@@ -371,6 +365,12 @@
}
if (!F.isExternal()) {
+ // Verify that this function (which has a body) is not named "llvm.*". It
+ // is not legal to define intrinsics.
+ if (F.getName().size() >= 5)
+ Assert1(F.getName().substr(0, 5) != "llvm.",
+ "llvm intrinsics cannot be defined!", &F);
+
verifySymbolTable(F.getSymbolTable());
// Check the entry node
More information about the llvm-commits
mailing list