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:
}
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