From 2db15e2b4271d09ebc33516566ba852b8567810b Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 16 Apr 2007 06:54:34 +0000 Subject: For PR1328: Don't assert everytime an intrinsic name isn't recognized. Instead, make the assert optional when callin getIntrinsicID(). This allows the assembler to handle invalid intrinsic names gracefully. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36120 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/IntrinsicEmitter.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'utils/TableGen/IntrinsicEmitter.cpp') diff --git a/utils/TableGen/IntrinsicEmitter.cpp b/utils/TableGen/IntrinsicEmitter.cpp index f884c424a7..834e1429ba 100644 --- a/utils/TableGen/IntrinsicEmitter.cpp +++ b/utils/TableGen/IntrinsicEmitter.cpp @@ -103,8 +103,6 @@ EmitFnNameRecognizer(const std::vector &Ints, << Ints[I->second].EnumName << ";\n"; } OS << " }\n"; - OS << " // The 'llvm.' namespace is reserved!\n"; - OS << " assert(0 && \"Unknown LLVM intrinsic function!\");\n"; OS << "#endif\n\n"; } -- cgit v1.2.3