diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-02-01 01:04:27 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-02-01 01:04:27 +0000 |
commit | 7beee2876795098d2e2f31ecc2ca29fa7640a8eb (patch) | |
tree | f423f3eeae4a2a9f83797a100264621aad840cd0 /lib/IR/AttributeImpl.h | |
parent | 901261d558d0b41ba75d8aa2b38aac72aaa41bae (diff) | |
download | external_llvm-7beee2876795098d2e2f31ecc2ca29fa7640a8eb.zip external_llvm-7beee2876795098d2e2f31ecc2ca29fa7640a8eb.tar.gz external_llvm-7beee2876795098d2e2f31ecc2ca29fa7640a8eb.tar.bz2 |
Remove some dead code, improve some asserts, and other assorted changes. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174132 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/AttributeImpl.h')
-rw-r--r-- | lib/IR/AttributeImpl.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/IR/AttributeImpl.h b/lib/IR/AttributeImpl.h index 2eb7f07..3fbd723 100644 --- a/lib/IR/AttributeImpl.h +++ b/lib/IR/AttributeImpl.h @@ -38,14 +38,9 @@ class AttributeImpl : public FoldingSetNode { void operator=(const AttributeImpl &) LLVM_DELETED_FUNCTION; AttributeImpl(const AttributeImpl &) LLVM_DELETED_FUNCTION; public: - AttributeImpl(LLVMContext &C, Constant *Kind) - : Context(C), Kind(Kind) {} - AttributeImpl(LLVMContext &C, Constant *Kind, ArrayRef<Constant*> Vals) + AttributeImpl(LLVMContext &C, Constant *Kind, + ArrayRef<Constant*> Vals = ArrayRef<Constant*>()) : Context(C), Kind(Kind), Vals(Vals.begin(), Vals.end()) {} - explicit AttributeImpl(LLVMContext &C, Attribute::AttrKind data); - AttributeImpl(LLVMContext &C, Attribute::AttrKind data, - ArrayRef<Constant*> values); - AttributeImpl(LLVMContext &C, StringRef data); LLVMContext &getContext() { return Context; } |