mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
the lengths of the strings are known, just use memcmp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34321 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -93,7 +93,7 @@ EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &Ints,
|
|||||||
}
|
}
|
||||||
|
|
||||||
OS << " if (Len == " << I->first.size()
|
OS << " if (Len == " << I->first.size()
|
||||||
<< " && !strcmp(Name, \"" << I->first << "\")) return Intrinsic::"
|
<< " && !memcmp(Name, \"" << I->first << "\", Len)) return Intrinsic::"
|
||||||
<< I->second << ";\n";
|
<< I->second << ";\n";
|
||||||
}
|
}
|
||||||
OS << " }\n";
|
OS << " }\n";
|
||||||
|
Reference in New Issue
Block a user