diff options
| author | Bill Wendling <isanbard@gmail.com> | 2012-10-15 05:40:12 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2012-10-15 05:40:12 +0000 |
| commit | 05cc40d20c0f3b2f1bd5cb86ceb9f32d07cae110 (patch) | |
| tree | baca35b564a9358564d479017e02be8093054aa0 /lib/VMCore/Attributes.cpp | |
| parent | cb3de0bc800d7920087b19bb12a545d4cc84114e (diff) | |
Move the AttributesImpl header file into the VMCore directory so that it can be opaque.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165920 91177308-0d34-0410-b5e6-96231b3b80d8
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); } |
