rearrange some directives, no functionality change.
authorChris Lattner <sabre@nondot.org>
Tue, 26 Jan 2010 23:41:48 +0000 (23:41 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 26 Jan 2010 23:41:48 +0000 (23:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94620 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/AsmPrinter.cpp

index 2dbb83646b6d2bc4b0a3f7d705a1b8f5df45ff60..0d6115939d5ec47da5dfd2fc2ce193599416cf1a 100644 (file)
@@ -292,11 +292,10 @@ void AsmPrinter::EmitFunctionHeader() {
   EmitConstantPool(MF->getConstantPool());
   
   // Print the 'header' of function.
-  unsigned FnAlign = MF->getAlignment();
   const Function *F = MF->getFunction();
 
   OutStreamer.SwitchSection(getObjFileLowering().SectionForGlobal(F, Mang, TM));
-  EmitAlignment(FnAlign, F);
+  printVisibility(CurrentFnSym, F->getVisibility());
 
   switch (F->getLinkage()) {
   default: llvm_unreachable("Unknown linkage type!");
@@ -327,7 +326,8 @@ void AsmPrinter::EmitFunctionHeader() {
     break;
   }
 
-  printVisibility(CurrentFnSym, F->getVisibility());
+  EmitAlignment(MF->getAlignment(), F);
+
 
   if (MAI->hasDotTypeDotSizeDirective())
     OutStreamer.EmitSymbolAttribute(CurrentFnSym, MCSA_ELF_TypeFunction);