diff options
Diffstat (limited to 'lib/VMCore/Attributes.cpp')
-rw-r--r-- | lib/VMCore/Attributes.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp index 010a356dea..fc5884be84 100644 --- a/lib/VMCore/Attributes.cpp +++ b/lib/VMCore/Attributes.cpp @@ -12,6 +12,7 @@ //===----------------------------------------------------------------------===// #include "llvm/Attributes.h" +#include "AttributesImpl.h" #include "LLVMContextImpl.h" #include "llvm/Type.h" #include "llvm/ADT/StringExtras.h" @@ -67,6 +68,10 @@ bool Attributes::hasAttribute(AttrVal Val) const { return Attrs && Attrs->hasAttribute(Val); } +bool Attributes::hasAttributes() const { + return Attrs && Attrs->hasAttributes(); +} + bool Attributes::hasAttributes(const Attributes &A) const { return Attrs && Attrs->hasAttributes(A); } |