llvm.org GIT mirror llvm / 09dda44
Remove dead methods. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173611 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 7 years ago
2 changed file(s) with 3 addition(s) and 23 deletion(s). Raw diff Collapse all Expand all
108108
109109 /// \brief Return a uniquified Attribute object. This takes the uniquified
110110 /// value from the Builder and wraps it in the Attribute class.
111 static Attribute get(LLVMContext &Context, ArrayRef Vals);
111 static Attribute get(LLVMContext &Context, AttrKind Kind);
112112 static Attribute get(LLVMContext &Context, AttrBuilder &B);
113113
114114 /// \brief Return true if the attribute is present.
350350 Attribute Attrs; ///< The attributes that are set, or'd together.
351351 unsigned Index; ///< Index of the parameter for which the attributes apply.
352352
353 // FIXME: These methods all need to be revised. The first one is temporary.
354 static AttributeWithIndex get(LLVMContext &C, unsigned Idx, AttributeSet AS);
355 static AttributeWithIndex get(LLVMContext &C, unsigned Idx,
356 ArrayRef Attrs) {
357 return get(Idx, Attribute::get(C, Attrs));
358 }
359353 static AttributeWithIndex get(unsigned Idx, Attribute Attrs) {
360354 AttributeWithIndex P;
361355 P.Index = Idx;
2929 // Attribute Implementation
3030 //===----------------------------------------------------------------------===//
3131
32 Attribute Attribute::get(LLVMContext &Context, ArrayRef Vals) {
33 AttrBuilder B;
34 for (ArrayRef::iterator I = Vals.begin(), E = Vals.end();
35 I != E; ++I)
36 B.addAttribute(*I);
32 Attribute Attribute::get(LLVMContext &Context, AttrKind Kind) {
33 AttrBuilder B(Kind);
3734 return Attribute::get(Context, B);
3835 }
3936
486483 }
487484
488485 //===----------------------------------------------------------------------===//
489 // AttributeWithIndex Definition
490 //===----------------------------------------------------------------------===//
491
492 AttributeWithIndex AttributeWithIndex::get(LLVMContext &C, unsigned Idx,
493 AttributeSet AS) {
494 // FIXME: This is temporary, but necessary for the conversion.
495 AttrBuilder B(AS, Idx);
496 return get(Idx, Attribute::get(C, B));
497 }
498
499 //===----------------------------------------------------------------------===//
500486 // AttributeSetNode Definition
501487 //===----------------------------------------------------------------------===//
502488