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 | 2db15e2b4271d09ebc33516566ba852b8567810b (patch) | |
tree | 631d167b146ff02d55f1c38dd676e5b8a337e351 /include/llvm/Function.h | |
parent | c7dcd7f6041ad1c034ae8e066eed3c8153826cb8 (diff) | |
download | external_llvm-2db15e2b4271d09ebc33516566ba852b8567810b.zip external_llvm-2db15e2b4271d09ebc33516566ba852b8567810b.tar.gz external_llvm-2db15e2b4271d09ebc33516566ba852b8567810b.tar.bz2 |
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
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r-- | include/llvm/Function.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index 751d1a3..90a8275 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -103,7 +103,7 @@ public: /// 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 |