diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-12-07 23:16:57 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-12-07 23:16:57 +0000 |
commit | 99faa3b4ec6d03ac7808fe4ff3fbf3d04e375502 (patch) | |
tree | 6239d55788f1895cdaf8f3d0c1ed96f66902b59d /lib/VMCore/Verifier.cpp | |
parent | 550f0ade457c3b042fa099ecff2c022c7ab58b1e (diff) | |
download | external_llvm-99faa3b4ec6d03ac7808fe4ff3fbf3d04e375502.tar.gz external_llvm-99faa3b4ec6d03ac7808fe4ff3fbf3d04e375502.tar.bz2 external_llvm-99faa3b4ec6d03ac7808fe4ff3fbf3d04e375502.zip |
s/AttrListPtr/AttributeSet/g to better label what this class is going to be in the near future.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Verifier.cpp')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index d21074bd2c..0c9493eb7d 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -299,7 +299,7 @@ namespace { SmallVectorImpl<Type*> &ArgTys); void VerifyParameterAttrs(Attributes Attrs, Type *Ty, bool isReturnValue, const Value *V); - void VerifyFunctionAttrs(FunctionType *FT, const AttrListPtr &Attrs, + void VerifyFunctionAttrs(FunctionType *FT, const AttributeSet &Attrs, const Value *V); void WriteValue(const Value *V) { @@ -585,7 +585,7 @@ void Verifier::VerifyParameterAttrs(Attributes Attrs, Type *Ty, // VerifyFunctionAttrs - Check parameter attributes against a function type. // The value V is printed in error messages. void Verifier::VerifyFunctionAttrs(FunctionType *FT, - const AttrListPtr &Attrs, + const AttributeSet &Attrs, const Value *V) { if (Attrs.isEmpty()) return; @@ -651,7 +651,7 @@ void Verifier::VerifyFunctionAttrs(FunctionType *FT, "'noinline and alwaysinline' are incompatible!", V); } -static bool VerifyAttributeCount(const AttrListPtr &Attrs, unsigned Params) { +static bool VerifyAttributeCount(const AttributeSet &Attrs, unsigned Params) { if (Attrs.isEmpty()) return true; @@ -687,7 +687,7 @@ void Verifier::visitFunction(Function &F) { Assert1(!F.hasStructRetAttr() || F.getReturnType()->isVoidTy(), "Invalid struct return type!", &F); - const AttrListPtr &Attrs = F.getAttributes(); + const AttributeSet &Attrs = F.getAttributes(); Assert1(VerifyAttributeCount(Attrs, FT->getNumParams()), "Attributes after last parameter!", &F); @@ -1200,7 +1200,7 @@ void Verifier::VerifyCallSite(CallSite CS) { "Call parameter type does not match function signature!", CS.getArgument(i), FTy->getParamType(i), I); - const AttrListPtr &Attrs = CS.getAttributes(); + const AttributeSet &Attrs = CS.getAttributes(); Assert1(VerifyAttributeCount(Attrs, CS.arg_size()), "Attributes after last parameter!", I); |