From d291066879ea4e577572fdbb22ba142826c98ccd Mon Sep 17 00:00:00 2001 From: Bruno Cardoso Lopes Date: Mon, 13 Jul 2009 22:40:39 +0000 Subject: 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 --- lib/CodeGen/ELFWriter.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/CodeGen/ELFWriter.h') diff --git a/lib/CodeGen/ELFWriter.h b/lib/CodeGen/ELFWriter.h index 1317880..b0d7f3b 100644 --- a/lib/CodeGen/ELFWriter.h +++ b/lib/CodeGen/ELFWriter.h @@ -218,7 +218,8 @@ namespace llvm { } // Helpers for obtaining ELF specific info. - unsigned getGlobalELFLinkage(const GlobalValue *GV); + unsigned getGlobalELFBinding(const GlobalValue *GV); + unsigned getGlobalELFType(const GlobalValue *GV); unsigned getGlobalELFVisibility(const GlobalValue *GV); unsigned getElfSectionFlags(unsigned Flags); @@ -231,8 +232,7 @@ namespace llvm { unsigned ELFHdr_e_shnum_Offset; // e_shnum in ELF header. private: - void EmitFunctionDeclaration(const Function *F); - void EmitGlobalVar(const GlobalVariable *GV); + void EmitGlobal(const GlobalValue *GV); void EmitGlobalConstant(const Constant *C, ELFSection &GblS); void EmitGlobalConstantStruct(const ConstantStruct *CVS, ELFSection &GblS); -- cgit v1.1