Recognize and verify the new GC intrinsics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13687 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2004-05-23 21:16:51 +00:00
parent 942ae1a07d
commit e899705c27
2 changed files with 21 additions and 6 deletions

View File

@@ -217,6 +217,11 @@ unsigned Function::getIntrinsicID() const {
case 'f':
if (getName() == "llvm.frameaddress") return Intrinsic::frameaddress;
break;
case 'g':
if (getName() == "llvm.gcwrite") return Intrinsic::gcwrite;
if (getName() == "llvm.gcread") return Intrinsic::gcread;
if (getName() == "llvm.gcroot") return Intrinsic::gcroot;
break;
case 'l':
if (getName() == "llvm.longjmp") return Intrinsic::longjmp;
break;