[llvm-commits] [llvm] r94620 - /llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Tue Jan 26 15:41:48 PST 2010
Author: lattner
Date: Tue Jan 26 17:41:48 2010
New Revision: 94620
URL: http://llvm.org/viewvc/llvm-project?rev=94620&view=rev
Log:
rearrange some directives, no functionality change.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=94620&r1=94619&r2=94620&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Tue Jan 26 17:41:48 2010
@@ -292,11 +292,10 @@
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 @@
break;
}
- printVisibility(CurrentFnSym, F->getVisibility());
+ EmitAlignment(MF->getAlignment(), F);
+
if (MAI->hasDotTypeDotSizeDirective())
OutStreamer.EmitSymbolAttribute(CurrentFnSym, MCSA_ELF_TypeFunction);
More information about the llvm-commits
mailing list