Remove dead methods.
[oota-llvm.git] / lib / IR / Attributes.cpp
index c033b5a005c94f1c914b74d53b655752ffd07cc9..937514a0a4a8af3ee29759ec6d2108bda1fc5053 100644 (file)
@@ -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);
 }
 
@@ -486,17 +483,6 @@ void AttributeImpl::Profile(FoldingSetNodeID &ID, Constant *Data,
 #endif
 }
 
-//===----------------------------------------------------------------------===//
-// 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
 //===----------------------------------------------------------------------===//