mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
rearrange some directives, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94620 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9815582fad
commit
b406a8141d
@ -292,11 +292,10 @@ void AsmPrinter::EmitFunctionHeader() {
|
|||||||
EmitConstantPool(MF->getConstantPool());
|
EmitConstantPool(MF->getConstantPool());
|
||||||
|
|
||||||
// Print the 'header' of function.
|
// Print the 'header' of function.
|
||||||
unsigned FnAlign = MF->getAlignment();
|
|
||||||
const Function *F = MF->getFunction();
|
const Function *F = MF->getFunction();
|
||||||
|
|
||||||
OutStreamer.SwitchSection(getObjFileLowering().SectionForGlobal(F, Mang, TM));
|
OutStreamer.SwitchSection(getObjFileLowering().SectionForGlobal(F, Mang, TM));
|
||||||
EmitAlignment(FnAlign, F);
|
printVisibility(CurrentFnSym, F->getVisibility());
|
||||||
|
|
||||||
switch (F->getLinkage()) {
|
switch (F->getLinkage()) {
|
||||||
default: llvm_unreachable("Unknown linkage type!");
|
default: llvm_unreachable("Unknown linkage type!");
|
||||||
@ -327,7 +326,8 @@ void AsmPrinter::EmitFunctionHeader() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
printVisibility(CurrentFnSym, F->getVisibility());
|
EmitAlignment(MF->getAlignment(), F);
|
||||||
|
|
||||||
|
|
||||||
if (MAI->hasDotTypeDotSizeDirective())
|
if (MAI->hasDotTypeDotSizeDirective())
|
||||||
OutStreamer.EmitSymbolAttribute(CurrentFnSym, MCSA_ELF_TypeFunction);
|
OutStreamer.EmitSymbolAttribute(CurrentFnSym, MCSA_ELF_TypeFunction);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user