فهرست منبع

Update for encapsulating the "construct*AlignmentFromInt" methods.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164374 91177308-0d34-0410-b5e6-96231b3b80d8
Bill Wendling 13 سال پیش
والد
کامیت
db9eeb88d8
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      lib/CodeGen/CGCall.cpp
  2. 1 1
      lib/CodeGen/TargetInfo.cpp

+ 1 - 1
lib/CodeGen/CGCall.cpp

@@ -1043,7 +1043,7 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI,
         Attrs |= llvm::Attribute::ByVal;
 
       Attrs |=
-        llvm::Attribute::constructAlignmentFromInt(AI.getIndirectAlign());
+        llvm::Attributes::constructAlignmentFromInt(AI.getIndirectAlign());
       // byval disables readnone and readonly.
       FuncAttrs &= ~(llvm::Attribute::ReadOnly |
                      llvm::Attribute::ReadNone);

+ 1 - 1
lib/CodeGen/TargetInfo.cpp

@@ -968,7 +968,7 @@ void X86_32TargetCodeGenInfo::SetTargetAttributes(const Decl *D,
       llvm::Function *Fn = cast<llvm::Function>(GV);
 
       // Now add the 'alignstack' attribute with a value of 16.
-      Fn->addFnAttr(llvm::Attribute::constructStackAlignmentFromInt(16));
+      Fn->addFnAttr(llvm::Attributes::constructStackAlignmentFromInt(16));
     }
   }
 }