diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-27 09:55:44 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-27 09:55:44 +0000 |
commit | 09dda440ba6622b64713ef5f7d9531411e3589ea (patch) | |
tree | 5b1811a32388f2bfb28aa2326bf4e61096b9087f /lib/IR | |
parent | 455151e4f7b6dc264183ecc892a2f9678ff5fe46 (diff) | |
download | external_llvm-09dda440ba6622b64713ef5f7d9531411e3589ea.zip external_llvm-09dda440ba6622b64713ef5f7d9531411e3589ea.tar.gz external_llvm-09dda440ba6622b64713ef5f7d9531411e3589ea.tar.bz2 |
Remove dead methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173611 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r-- | lib/IR/Attributes.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp index c033b5a..937514a 100644 --- a/lib/IR/Attributes.cpp +++ b/lib/IR/Attributes.cpp @@ -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(FoldingSetNodeID &ID, Constant *Data, } //===----------------------------------------------------------------------===// -// 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 //===----------------------------------------------------------------------===// |