aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-26 23:41:48 +0000
committerChris Lattner <sabre@nondot.org>2010-01-26 23:41:48 +0000
commitb406a8141d704bca7a8eade3a0c46d7ec73affc8 (patch)
tree3b6ce3355185933a0442b3615eb01641a4c13204 /lib
parent9815582faddd8d6a194472e02ce408018d8cacec (diff)
downloadexternal_llvm-b406a8141d704bca7a8eade3a0c46d7ec73affc8.zip
external_llvm-b406a8141d704bca7a8eade3a0c46d7ec73affc8.tar.gz
external_llvm-b406a8141d704bca7a8eade3a0c46d7ec73affc8.tar.bz2
rearrange some directives, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 2dbb836..0d61159 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -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);