mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Cleanup the global emission and refactor some code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75537 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -62,7 +62,7 @@ bool ELFCodeEmitter::finishFunction(MachineFunction &MF) {
|
||||
const Function *F = MF.getFunction();
|
||||
ELFSym FnSym(F);
|
||||
FnSym.setType(ELFSym::STT_FUNC);
|
||||
FnSym.setBind(EW.getGlobalELFLinkage(F));
|
||||
FnSym.setBind(EW.getGlobalELFBinding(F));
|
||||
FnSym.setVisibility(EW.getGlobalELFVisibility(F));
|
||||
FnSym.SectionIdx = ES->SectionIdx;
|
||||
FnSym.Size = ES->getCurrentPCOffset()-FnStartOff;
|
||||
|
Reference in New Issue
Block a user