From 7707c5a9857037b305723597d7c638f46a41a942 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 29 Jan 2013 00:48:16 +0000 Subject: [PATCH] S'more small non-functional changes in comments and #includes. llvm-svn: 173738 --- llvm/include/llvm/IR/Attributes.h | 13 +++---------- llvm/lib/IR/Attributes.cpp | 7 +++++-- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/llvm/include/llvm/IR/Attributes.h b/llvm/include/llvm/IR/Attributes.h index a95ede1..ba46d20 100644 --- a/llvm/include/llvm/IR/Attributes.h +++ b/llvm/include/llvm/IR/Attributes.h @@ -19,7 +19,6 @@ #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/FoldingSet.h" -#include "llvm/Support/MathExtras.h" #include #include @@ -27,7 +26,8 @@ namespace llvm { class AttrBuilder; class AttributeImpl; -class Constant; +class AttributeSetImpl; +class AttributeSetNode; class LLVMContext; class Type; @@ -161,14 +161,6 @@ public: }; //===----------------------------------------------------------------------===// -// AttributeSet Smart Pointer -//===----------------------------------------------------------------------===// - -class AttrBuilder; -class AttributeSetImpl; -class AttributeSetNode; - -//===----------------------------------------------------------------------===// /// \class /// \brief This class manages the ref count for the opaque AttributeSetImpl /// object and provides accessors for it. @@ -415,6 +407,7 @@ public: iterator begin() { return Attrs.begin(); } iterator end() { return Attrs.end(); } + const_iterator begin() const { return Attrs.begin(); } const_iterator end() const { return Attrs.end(); } diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index f56eb7b..0bc9262 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); } -- 2.7.4