mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
only check non-external functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32530 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
41af719526
commit
4d17caadbc
@ -334,12 +334,6 @@ void Verifier::visitFunction(Function &F) {
|
||||
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 @@ void Verifier::visitFunction(Function &F) {
|
||||
}
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user