summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Attributes.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-29 00:48:16 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-29 00:48:16 +0000
commit7707c5a9857037b305723597d7c638f46a41a942 (patch)
tree18cb3d58b83b3c7fb5d8497e299ecf92ac3dd91e /llvm/lib/IR/Attributes.cpp
parentd7760bffda8b2d78e8d4542e474636990297cd79 (diff)
downloadbcm5719-llvm-7707c5a9857037b305723597d7c638f46a41a942.tar.gz
bcm5719-llvm-7707c5a9857037b305723597d7c638f46a41a942.zip
S'more small non-functional changes in comments and #includes.
llvm-svn: 173738
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r--llvm/lib/IR/Attributes.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index f56eb7be9ce..0bc926271ae 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/lib/IR/Attributes.cpp
@@ -16,7 +16,6 @@
#include "llvm/IR/Attributes.h"
#include "AttributeImpl.h"
#include "LLVMContextImpl.h"
-#include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/IR/Type.h"
#include "llvm/Support/Atomic.h"
@@ -28,7 +27,7 @@
using namespace llvm;
//===----------------------------------------------------------------------===//
-// Attribute Implementation
+// Attribute Construction Methods
//===----------------------------------------------------------------------===//
Attribute Attribute::get(LLVMContext &Context, AttrKind Kind) {
@@ -72,6 +71,10 @@ Attribute Attribute::getWithStackAlignment(LLVMContext &Context,
return get(Context, B.addStackAlignmentAttr(Align));
}
+//===----------------------------------------------------------------------===//
+// Attribute Accessor Methods
+//===----------------------------------------------------------------------===//
+
bool Attribute::hasAttribute(AttrKind Val) const {
return pImpl && pImpl->hasAttribute(Val);
}
OpenPOWER on IntegriCloud