Add support for new intrinsic

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10701 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-01-06 05:33:02 +00:00
parent b4ebc04945
commit 90ab32f9f0
2 changed files with 2 additions and 0 deletions

View File

@ -212,6 +212,7 @@ unsigned Function::getIntrinsicID() const {
if (getName() == "llvm.dbg.region.start")return Intrinsic::dbg_region_start;
if (getName() == "llvm.dbg.region.end") return Intrinsic::dbg_region_end;
if (getName() == "llvm.dbg.func.start") return Intrinsic::dbg_func_start;
if (getName() == "llvm.dbg.declare") return Intrinsic::dbg_declare;
break;
case 'l':
if (getName() == "llvm.longjmp") return Intrinsic::longjmp;

View File

@ -553,6 +553,7 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) {
case Intrinsic::dbg_region_start:NumArgs = 1; break;
case Intrinsic::dbg_region_end: NumArgs = 1; break;
case Intrinsic::dbg_func_start: NumArgs = 1; break;
case Intrinsic::dbg_declare: NumArgs = 1; break;
case Intrinsic::alpha_ctlz: NumArgs = 1; break;
case Intrinsic::alpha_cttz: NumArgs = 1; break;