diff options
author | Dale Johannesen <dalej@apple.com> | 2008-02-19 21:38:47 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-02-19 21:38:47 +0000 |
commit | 89268bc6e2c11c951d1c37f100696bff48d58fbf (patch) | |
tree | 7a654c3dd76155923833fd2ae7636110938cf813 /llvm/lib/VMCore/Instructions.cpp | |
parent | 4ae998528531ad6719d3503fce1e72e5a4d589b6 (diff) | |
download | bcm5719-llvm-89268bc6e2c11c951d1c37f100696bff48d58fbf.tar.gz bcm5719-llvm-89268bc6e2c11c951d1c37f100696bff48d58fbf.zip |
Expand ParameterAttributes to 32 bits (in preparation
for adding alignment info, not there yet). Clean up
interfaces to reference ParameterAttributes consistently.
llvm-svn: 47342
Diffstat (limited to 'llvm/lib/VMCore/Instructions.cpp')
-rw-r--r-- | llvm/lib/VMCore/Instructions.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp index 1a4a5ce7258..863f011cd07 100644 --- a/llvm/lib/VMCore/Instructions.cpp +++ b/llvm/lib/VMCore/Instructions.cpp @@ -55,11 +55,11 @@ void CallSite::setParamAttrs(const ParamAttrsList *PAL) { else cast<InvokeInst>(I)->setParamAttrs(PAL); } -bool CallSite::paramHasAttr(uint16_t i, unsigned attr) const { +bool CallSite::paramHasAttr(uint16_t i, ParameterAttributes attr) const { if (CallInst *CI = dyn_cast<CallInst>(I)) - return CI->paramHasAttr(i, (ParameterAttributes)attr); + return CI->paramHasAttr(i, attr); else - return cast<InvokeInst>(I)->paramHasAttr(i, (ParameterAttributes)attr); + return cast<InvokeInst>(I)->paramHasAttr(i, attr); } bool CallSite::doesNotAccessMemory() const { if (CallInst *CI = dyn_cast<CallInst>(I)) @@ -374,11 +374,11 @@ void CallInst::setParamAttrs(const ParamAttrsList *newAttrs) { ParamAttrs = newAttrs; } -bool CallInst::paramHasAttr(uint16_t i, unsigned attr) const { - if (ParamAttrs && ParamAttrs->paramHasAttr(i, (ParameterAttributes)attr)) +bool CallInst::paramHasAttr(uint16_t i, ParameterAttributes attr) const { + if (ParamAttrs && ParamAttrs->paramHasAttr(i, attr)) return true; if (const Function *F = getCalledFunction()) - return F->paramHasAttr(i, (ParameterAttributes)attr); + return F->paramHasAttr(i, attr); return false; } @@ -498,11 +498,11 @@ void InvokeInst::setParamAttrs(const ParamAttrsList *newAttrs) { ParamAttrs = newAttrs; } -bool InvokeInst::paramHasAttr(uint16_t i, unsigned attr) const { - if (ParamAttrs && ParamAttrs->paramHasAttr(i, (ParameterAttributes)attr)) +bool InvokeInst::paramHasAttr(uint16_t i, ParameterAttributes attr) const { + if (ParamAttrs && ParamAttrs->paramHasAttr(i, attr)) return true; if (const Function *F = getCalledFunction()) - return F->paramHasAttr(i, (ParameterAttributes)attr); + return F->paramHasAttr(i, attr); return false; } |