diff options
| author | Bill Wendling <isanbard@gmail.com> | 2012-09-21 16:07:28 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2012-09-21 16:07:28 +0000 |
| commit | 89442efddc3843573564ba39eba7603294fe7806 (patch) | |
| tree | 6e7cc7615c74f45b5f41fee8a21e36ba2db77645 /llvm/lib | |
| parent | 7325a9d08e76f409e83eb34bba43203e628340aa (diff) | |
| download | bcm5719-llvm-89442efddc3843573564ba39eba7603294fe7806.tar.gz bcm5719-llvm-89442efddc3843573564ba39eba7603294fe7806.zip | |
Encapsulate the "construct*AlignmentFromInt" functions.
llvm-svn: 164373
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/VMCore/Core.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index c1d5272ca50..eedec8383a5 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -967,7 +967,7 @@ bool LLParser::ParseOptionalAttrs(Attributes &Attrs, unsigned AttrKind) { unsigned Alignment; if (ParseOptionalStackAlignment(Alignment)) return true; - Attrs |= Attribute::constructStackAlignmentFromInt(Alignment); + Attrs |= Attributes::constructStackAlignmentFromInt(Alignment); continue; } @@ -975,7 +975,7 @@ bool LLParser::ParseOptionalAttrs(Attributes &Attrs, unsigned AttrKind) { unsigned Alignment; if (ParseOptionalAlignment(Alignment)) return true; - Attrs |= Attribute::constructAlignmentFromInt(Alignment); + Attrs |= Attributes::constructAlignmentFromInt(Alignment); continue; } diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp index 924367deef2..90ecdaecf41 100644 --- a/llvm/lib/VMCore/Core.cpp +++ b/llvm/lib/VMCore/Core.cpp @@ -1475,7 +1475,7 @@ LLVMAttribute LLVMGetAttribute(LLVMValueRef Arg) { void LLVMSetParamAlignment(LLVMValueRef Arg, unsigned align) { unwrap<Argument>(Arg)->addAttr( - Attribute::constructAlignmentFromInt(align)); + Attributes::constructAlignmentFromInt(align)); } /*--.. Operations on basic blocks ..........................................--*/ @@ -1680,7 +1680,7 @@ void LLVMSetInstrParamAlignment(LLVMValueRef Instr, unsigned index, CallSite Call = CallSite(unwrap<Instruction>(Instr)); Call.setAttributes( Call.getAttributes().addAttr(index, - Attribute::constructAlignmentFromInt(align))); + Attributes::constructAlignmentFromInt(align))); } /*--.. Operations on call instructions (only) ..............................--*/ |

