S'more small non-functional changes in comments and #includes.
authorBill Wendling <isanbard@gmail.com>
Tue, 29 Jan 2013 00:48:16 +0000 (00:48 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 29 Jan 2013 00:48:16 +0000 (00:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173738 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Attributes.h
lib/IR/Attributes.cpp

index a95ede176044e9cc60398c7b55b2373fb1c5308d..ba46d205caa6a08a0ddaf212590ec688dae7ae17 100644 (file)
@@ -19,7 +19,6 @@
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/DenseSet.h"
 #include "llvm/ADT/FoldingSet.h"
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/DenseSet.h"
 #include "llvm/ADT/FoldingSet.h"
-#include "llvm/Support/MathExtras.h"
 #include <cassert>
 #include <string>
 
 #include <cassert>
 #include <string>
 
@@ -27,7 +26,8 @@ namespace llvm {
 
 class AttrBuilder;
 class AttributeImpl;
 
 class AttrBuilder;
 class AttributeImpl;
-class Constant;
+class AttributeSetImpl;
+class AttributeSetNode;
 class LLVMContext;
 class Type;
 
 class LLVMContext;
 class Type;
 
@@ -160,14 +160,6 @@ public:
   uint64_t Raw() const;
 };
 
   uint64_t Raw() const;
 };
 
-//===----------------------------------------------------------------------===//
-// AttributeSet Smart Pointer
-//===----------------------------------------------------------------------===//
-
-class AttrBuilder;
-class AttributeSetImpl;
-class AttributeSetNode;
-
 //===----------------------------------------------------------------------===//
 /// \class
 /// \brief This class manages the ref count for the opaque AttributeSetImpl
 //===----------------------------------------------------------------------===//
 /// \class
 /// \brief This class manages the ref count for the opaque AttributeSetImpl
@@ -415,6 +407,7 @@ public:
 
   iterator begin()             { return Attrs.begin(); }
   iterator end()               { return Attrs.end(); }
 
   iterator begin()             { return Attrs.begin(); }
   iterator end()               { return Attrs.end(); }
+
   const_iterator begin() const { return Attrs.begin(); }
   const_iterator end() const   { return Attrs.end(); }
 
   const_iterator begin() const { return Attrs.begin(); }
   const_iterator end() const   { return Attrs.end(); }
 
index f56eb7be9ce31b90fcd77b6755191aa8bc15ba5b..0bc926271aeb5f6836bab22a2a9ed66df4e6cac8 100644 (file)
@@ -16,7 +16,6 @@
 #include "llvm/IR/Attributes.h"
 #include "AttributeImpl.h"
 #include "LLVMContextImpl.h"
 #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"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/IR/Type.h"
 #include "llvm/Support/Atomic.h"
@@ -28,7 +27,7 @@
 using namespace llvm;
 
 //===----------------------------------------------------------------------===//
 using namespace llvm;
 
 //===----------------------------------------------------------------------===//
-// Attribute Implementation
+// Attribute Construction Methods
 //===----------------------------------------------------------------------===//
 
 Attribute Attribute::get(LLVMContext &Context, AttrKind Kind) {
 //===----------------------------------------------------------------------===//
 
 Attribute Attribute::get(LLVMContext &Context, AttrKind Kind) {
@@ -72,6 +71,10 @@ Attribute Attribute::getWithStackAlignment(LLVMContext &Context,
   return get(Context, B.addStackAlignmentAttr(Align));
 }
 
   return get(Context, B.addStackAlignmentAttr(Align));
 }
 
+//===----------------------------------------------------------------------===//
+// Attribute Accessor Methods
+//===----------------------------------------------------------------------===//
+
 bool Attribute::hasAttribute(AttrKind Val) const {
   return pImpl && pImpl->hasAttribute(Val);
 }
 bool Attribute::hasAttribute(AttrKind Val) const {
   return pImpl && pImpl->hasAttribute(Val);
 }