[llvm-commits] CVS: llvm/utils/TableGen/IntrinsicEmitter.cpp

Reid Spencer reid at x10sys.com
Sun Apr 15 23:55:04 PDT 2007



Changes in directory llvm/utils/TableGen:

IntrinsicEmitter.cpp updated: 1.30 -> 1.31
---
Log message:

For PR1328: http://llvm.org/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.


---
Diffs of the changes:  (+0 -2)

 IntrinsicEmitter.cpp |    2 --
 1 files changed, 2 deletions(-)


Index: llvm/utils/TableGen/IntrinsicEmitter.cpp
diff -u llvm/utils/TableGen/IntrinsicEmitter.cpp:1.30 llvm/utils/TableGen/IntrinsicEmitter.cpp:1.31
--- llvm/utils/TableGen/IntrinsicEmitter.cpp:1.30	Sun Apr  1 02:20:02 2007
+++ llvm/utils/TableGen/IntrinsicEmitter.cpp	Mon Apr 16 01:54:34 2007
@@ -103,8 +103,6 @@
          << 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";
 }
 






More information about the llvm-commits mailing list