This patch adds new functions to the SectionRef and ObjectFile interfaces to determin...
[oota-llvm.git] / include / llvm / Attributes.h
index fcfacb12a55ed05f3d09d434bbf63428b1d2145b..1c2770995c20a0d1223e01c549ccaa547acb9695 100644 (file)
@@ -53,7 +53,6 @@ struct AttrConst {
 /// declarations. This is done to avoid static CTORs and at the same time to
 /// keep type-safety of Attributes.
 #define DECLARE_LLVM_ATTRIBUTE(name, value) \
-  const uint64_t name##_i = value; \
   const AttrConst name = {value};
 
 DECLARE_LLVM_ATTRIBUTE(None,0)    ///< No attributes have been set
@@ -296,7 +295,7 @@ public:
   static Attributes constructAlignmentFromInt(unsigned i) {
     // Default alignment, allow the target to define how to align it.
     if (i == 0)
-      return Attribute::None;
+      return Attributes();
 
     assert(isPowerOf2_32(i) && "Alignment must be a power of two.");
     assert(i <= 0x40000000 && "Alignment too large.");
@@ -308,7 +307,7 @@ public:
   static Attributes constructStackAlignmentFromInt(unsigned i) {
     // Default alignment, allow the target to define how to align it.
     if (i == 0)
-      return Attribute::None;
+      return Attributes();
 
     assert(isPowerOf2_32(i) && "Alignment must be a power of two.");
     assert(i <= 0x100 && "Alignment too large.");