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:
Bruno Cardoso Lopes
2009-07-13 22:40:39 +00:00
parent db1cd5eba5
commit d291066879
4 changed files with 112 additions and 106 deletions

View File

@@ -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;