diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-02-22 00:12:35 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-02-22 00:12:35 +0000 |
commit | 143d46476cdcf5b88b9ee18ebd799e5820a2db0e (patch) | |
tree | 8b99f1da4df8777771cf9355beeefc3660950465 /lib/IR/Verifier.cpp | |
parent | a931a12e04b856421977c86d94789cd8b47d6ad3 (diff) | |
download | external_llvm-143d46476cdcf5b88b9ee18ebd799e5820a2db0e.zip external_llvm-143d46476cdcf5b88b9ee18ebd799e5820a2db0e.tar.gz external_llvm-143d46476cdcf5b88b9ee18ebd799e5820a2db0e.tar.bz2 |
Implement the NoBuiltin attribute.
The 'nobuiltin' attribute is applied to call sites to indicate that LLVM should
not treat the callee function as a built-in function. I.e., it shouldn't try to
replace that function with different code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/Verifier.cpp')
-rw-r--r-- | lib/IR/Verifier.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index 02c2096..33e8ec6 100644 --- a/lib/IR/Verifier.cpp +++ b/lib/IR/Verifier.cpp @@ -653,7 +653,8 @@ void Verifier::VerifyParameterAttrs(AttributeSet Attrs, uint64_t Idx, Type *Ty, !Attrs.hasAttribute(Idx, Attribute::AddressSafety) && !Attrs.hasAttribute(Idx, Attribute::ThreadSafety) && !Attrs.hasAttribute(Idx, Attribute::UninitializedChecks) && - !Attrs.hasAttribute(Idx, Attribute::MinSize), + !Attrs.hasAttribute(Idx, Attribute::MinSize) && + !Attrs.hasAttribute(Idx, Attribute::NoBuiltin), "Some attributes in '" + Attrs.getAsString(Idx) + "' only apply to functions!", V); |