]> granicus.if.org Git - clang/commitdiff
Update for encapsulating the "construct*AlignmentFromInt" methods.
authorBill Wendling <isanbard@gmail.com>
Fri, 21 Sep 2012 16:07:49 +0000 (16:07 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 21 Sep 2012 16:07:49 +0000 (16:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164374 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCall.cpp
lib/CodeGen/TargetInfo.cpp

index 95bee4bd5a43f7338988134ede6ea64bfce05ab7..bdc0d855e079ed38c9fbcbf6d0d2305856173569 100644 (file)
@@ -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);
index 909a6e858b2eaa26bc412136978aa21021cfe669..419ce022e5575dbeb23cf4d03f76b45a7af14165 100644 (file)
@@ -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));
     }
   }
 }