diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2020-08-29 19:08:17 +0200 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2020-08-29 19:13:49 +0200 |
commit | 8e5b1557e5b32ec59336b0c80f1e35bf5d626ba6 (patch) | |
tree | 824401e7f6142f33d12a1e4177b64d52f46a509c /llvm/lib/IR/Attributes.cpp | |
parent | 85fce449dc43447bf9d75163bda81e157f5b73e7 (diff) | |
download | llvm-8e5b1557e5b32ec59336b0c80f1e35bf5d626ba6.zip llvm-8e5b1557e5b32ec59336b0c80f1e35bf5d626ba6.tar.gz llvm-8e5b1557e5b32ec59336b0c80f1e35bf5d626ba6.tar.bz2 |
[IR] Inline AttrBuilder::addAttribute. It just sets 1 bit. NFC.
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index 157f9a7..a3940c0 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -1559,14 +1559,6 @@ void AttrBuilder::clear() { PreallocatedType = nullptr; } -AttrBuilder &AttrBuilder::addAttribute(Attribute::AttrKind Val) { - assert((unsigned)Val < Attribute::EndAttrKinds && "Attribute out of range!"); - assert(!Attribute::doesAttrKindHaveArgument(Val) && - "Adding integer attribute without adding a value!"); - Attrs[Val] = true; - return *this; -} - AttrBuilder &AttrBuilder::addAttribute(Attribute Attr) { if (Attr.isStringAttribute()) { addAttribute(Attr.getKindAsString(), Attr.getValueAsString()); |