[llvm-commits] CVS: llvm/include/llvm/Function.h
Reid Spencer
reid at x10sys.com
Sun Apr 15 23:54:56 PDT 2007
Changes in directory llvm/include/llvm:
Function.h updated: 1.74 -> 1.75
---
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: (+1 -1)
Function.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/include/llvm/Function.h
diff -u llvm/include/llvm/Function.h:1.74 llvm/include/llvm/Function.h:1.75
--- llvm/include/llvm/Function.h:1.74 Fri Apr 13 13:12:09 2007
+++ llvm/include/llvm/Function.h Mon Apr 16 01:54:34 2007
@@ -103,7 +103,7 @@
/// The particular intrinsic functions which correspond to this value are
/// defined in llvm/Intrinsics.h.
///
- unsigned getIntrinsicID() const;
+ unsigned getIntrinsicID(bool noAssert = false) const;
bool isIntrinsic() const { return getIntrinsicID() != 0; }
/// getCallingConv()/setCallingConv(uint) - These method get and set the
More information about the llvm-commits
mailing list