diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-25 23:09:36 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-25 23:09:36 +0000 |
commit | 57625a49666614860430a2b3d81600ead4df0fd5 (patch) | |
tree | cb7f9e295bdd30d4910a3ea03871b06eb6e197a4 /llvm/lib/IR/Verifier.cpp | |
parent | 66024d02448d4ce05f1ad71a92b610f2285882f8 (diff) | |
download | bcm5719-llvm-57625a49666614860430a2b3d81600ead4df0fd5.tar.gz bcm5719-llvm-57625a49666614860430a2b3d81600ead4df0fd5.zip |
Remove some introspection functions.
The 'getSlot' function and its ilk allow introspection into the AttributeSet
class. However, that class should be opaque. Allow access through accessor
methods instead.
llvm-svn: 173522
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 9a482f1452b..39f95fa772d 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -693,9 +693,9 @@ void Verifier::VerifyParameterAttrs(AttributeSet Attrs, uint64_t Idx, Type *Ty, "'noinline and alwaysinline' are incompatible!", V); Assert1(!AttrBuilder(Attrs, Idx). - hasAttributes(Attribute::typeIncompatible(Ty)), + hasAttributes(AttributeFuncs::typeIncompatible(Ty)), "Wrong types for attribute: " + - Attribute::typeIncompatible(Ty).getAsString(), V); + AttributeFuncs::typeIncompatible(Ty).getAsString(), V); if (PointerType *PTy = dyn_cast<PointerType>(Ty)) Assert1(!Attrs.hasAttribute(Idx, Attribute::ByVal) || |