diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-14 07:52:48 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-14 07:52:48 +0000 |
commit | 1feacad0ca033e7e8f2f557a0d7fa5acc4076080 (patch) | |
tree | 5df17f7192f926f217cb89c5f224473820aa4dfc /lib/VMCore | |
parent | c416795feaaa2052f7b46fa7a3f9b6ec3751b1eb (diff) | |
download | external_llvm-1feacad0ca033e7e8f2f557a0d7fa5acc4076080.zip external_llvm-1feacad0ca033e7e8f2f557a0d7fa5acc4076080.tar.gz external_llvm-1feacad0ca033e7e8f2f557a0d7fa5acc4076080.tar.bz2 |
Remove the bitwise AND operators from the Attributes class. Replace it with the equivalent from the builder class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165896 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Attributes.cpp | 8 | ||||
-rw-r--r-- | lib/VMCore/Verifier.cpp | 7 |
2 files changed, 4 insertions, 11 deletions
diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp index 635ad14..fadb8ca 100644 --- a/lib/VMCore/Attributes.cpp +++ b/lib/VMCore/Attributes.cpp @@ -93,14 +93,6 @@ bool Attributes::isEmptyOrSingleton() const { return Attrs.isEmptyOrSingleton(); } -Attributes Attributes::operator & (const Attributes &A) const { - return Attributes(Raw() & A.Raw()); -} -Attributes &Attributes::operator &= (const Attributes &A) { - Attrs.Bits &= A.Raw(); - return *this; -} - uint64_t Attributes::Raw() const { return Attrs.Bits; } diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 53744b4..5d431df 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -567,9 +567,10 @@ void Verifier::VerifyParameterAttrs(Attributes Attrs, Type *Ty, Attrs.hasAttribute(Attributes::AlwaysInline)), "Attributes " "'noinline and alwaysinline' are incompatible!", V); - Attributes TypeI = Attrs & Attributes::typeIncompatible(Ty); - Assert1(!TypeI, "Wrong type for attribute " + - TypeI.getAsString(), V); + Assert1(!Attributes::Builder(Attrs). + hasAttributes(Attributes::typeIncompatible(Ty)), + "Wrong types for attribute: " + + Attributes::typeIncompatible(Ty).getAsString(), V); if (PointerType *PTy = dyn_cast<PointerType>(Ty)) Assert1(!Attrs.hasAttribute(Attributes::ByVal) || |