diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-26 00:03:11 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-26 00:03:11 +0000 |
commit | 32a57958226e369f964a034da2ce7083a1a34297 (patch) | |
tree | 2ad83b052cae7d24eb93812e56e45ab38ed6e339 /lib/IR | |
parent | 2fde57c1d1e4a78ed4095b886d731053df07e4b9 (diff) | |
download | external_llvm-32a57958226e369f964a034da2ce7083a1a34297.zip external_llvm-32a57958226e369f964a034da2ce7083a1a34297.tar.gz external_llvm-32a57958226e369f964a034da2ce7083a1a34297.tar.bz2 |
Convert BuildLibCalls.cpp to using the AttributeSet methods instead of AttributeWithIndex.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r-- | lib/IR/Attributes.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp index 45f8184..c033b5a 100644 --- a/lib/IR/Attributes.cpp +++ b/lib/IR/Attributes.cpp @@ -605,8 +605,14 @@ AttributeSet AttributeSet::get(LLVMContext &C, unsigned Idx, AttrBuilder &B) { } AttributeSet AttributeSet::get(LLVMContext &C, unsigned Idx, - Attribute::AttrKind Kind) { - return get(C, AttributeWithIndex::get(Idx, Attribute::get(C, Kind))); + ArrayRef<Attribute::AttrKind> Kind) { + // FIXME: This is temporary. Ultimately, the AttributeWithIndex will be + // replaced by an object that holds multiple Attribute::AttrKinds. + AttrBuilder B; + for (ArrayRef<Attribute::AttrKind>::iterator I = Kind.begin(), + E = Kind.end(); I != E; ++I) + B.addAttribute(*I); + return get(C, Idx, B); } AttributeSet AttributeSet::get(LLVMContext &C, ArrayRef<AttributeSet> Attrs) { |