summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
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
commit22fc38dd4fbb3371766493b1301c2ace85903f07 (patch)
tree7b54aa1efa43eb505cba0dd3fbdbc9d0963f9d6c /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent6d7deae2df84b628868c49e5598f45a7a47a201d (diff)
downloadbcm5719-llvm-22fc38dd4fbb3371766493b1301c2ace85903f07.tar.gz
bcm5719-llvm-22fc38dd4fbb3371766493b1301c2ace85903f07.zip
rearrange some directives, no functionality change.
llvm-svn: 94620
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 2dbb83646b6..0d6115939d5 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud