[llvm-commits] [llvm] r173611 - Remove dead methods.
Bill Wendling
isanbard at gmail.com
Sun Jan 27 01:55:45 PST 2013
Author: void
Date: Sun Jan 27 03:55:44 2013
New Revision: 173611
URL: http://llvm.org/viewvc/llvm-project?rev=173611&view=rev
Log:
Remove dead methods.
Modified:
llvm/trunk/include/llvm/IR/Attributes.h
llvm/trunk/lib/IR/Attributes.cpp
Modified: llvm/trunk/include/llvm/IR/Attributes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Attributes.h?rev=173611&r1=173610&r2=173611&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Attributes.h (original)
+++ llvm/trunk/include/llvm/IR/Attributes.h Sun Jan 27 03:55:44 2013
@@ -109,7 +109,7 @@ public:
/// \brief Return a uniquified Attribute object. This takes the uniquified
/// value from the Builder and wraps it in the Attribute class.
- static Attribute get(LLVMContext &Context, ArrayRef<AttrKind> Vals);
+ static Attribute get(LLVMContext &Context, AttrKind Kind);
static Attribute get(LLVMContext &Context, AttrBuilder &B);
/// \brief Return true if the attribute is present.
@@ -351,12 +351,6 @@ struct AttributeWithIndex {
Attribute Attrs; ///< The attributes that are set, or'd together.
unsigned Index; ///< Index of the parameter for which the attributes apply.
- // FIXME: These methods all need to be revised. The first one is temporary.
- static AttributeWithIndex get(LLVMContext &C, unsigned Idx, AttributeSet AS);
- static AttributeWithIndex get(LLVMContext &C, unsigned Idx,
- ArrayRef<Attribute::AttrKind> Attrs) {
- return get(Idx, Attribute::get(C, Attrs));
- }
static AttributeWithIndex get(unsigned Idx, Attribute Attrs) {
AttributeWithIndex P;
P.Index = Idx;
Modified: llvm/trunk/lib/IR/Attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Attributes.cpp?rev=173611&r1=173610&r2=173611&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Attributes.cpp (original)
+++ llvm/trunk/lib/IR/Attributes.cpp Sun Jan 27 03:55:44 2013
@@ -30,11 +30,8 @@ using namespace llvm;
// Attribute Implementation
//===----------------------------------------------------------------------===//
-Attribute Attribute::get(LLVMContext &Context, ArrayRef<AttrKind> Vals) {
- AttrBuilder B;
- for (ArrayRef<AttrKind>::iterator I = Vals.begin(), E = Vals.end();
- I != E; ++I)
- B.addAttribute(*I);
+Attribute Attribute::get(LLVMContext &Context, AttrKind Kind) {
+ AttrBuilder B(Kind);
return Attribute::get(Context, B);
}
@@ -487,17 +484,6 @@ void AttributeImpl::Profile(FoldingSetNo
}
//===----------------------------------------------------------------------===//
-// AttributeWithIndex Definition
-//===----------------------------------------------------------------------===//
-
-AttributeWithIndex AttributeWithIndex::get(LLVMContext &C, unsigned Idx,
- AttributeSet AS) {
- // FIXME: This is temporary, but necessary for the conversion.
- AttrBuilder B(AS, Idx);
- return get(Idx, Attribute::get(C, B));
-}
-
-//===----------------------------------------------------------------------===//
// AttributeSetNode Definition
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list