diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-16 06:54:34 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-16 06:54:34 +0000 |
| commit | 9c2eec377ec079c605f662ba49e4be94c39ed01e (patch) | |
| tree | eebd3f7a861548c0761d5de99b3f7b4f1ffe0456 /llvm/utils | |
| parent | f400745e7f5bed8ae1eea0dd8bc6b5067d77a2b4 (diff) | |
| download | bcm5719-llvm-9c2eec377ec079c605f662ba49e4be94c39ed01e.tar.gz bcm5719-llvm-9c2eec377ec079c605f662ba49e4be94c39ed01e.zip | |
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.
llvm-svn: 36120
Diffstat (limited to 'llvm/utils')
| -rw-r--r-- | llvm/utils/TableGen/IntrinsicEmitter.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/IntrinsicEmitter.cpp b/llvm/utils/TableGen/IntrinsicEmitter.cpp index f884c424a71..834e1429ba4 100644 --- a/llvm/utils/TableGen/IntrinsicEmitter.cpp +++ b/llvm/utils/TableGen/IntrinsicEmitter.cpp @@ -103,8 +103,6 @@ EmitFnNameRecognizer(const std::vector<CodeGenIntrinsic> &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"; } |

