diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-07-13 22:40:39 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2009-07-13 22:40:39 +0000 |
commit | af939d83a0e1401f0219257327c0277c7fbd3753 (patch) | |
tree | 809d42bb044c570bc348aeac7ed49c56bd359b8b /lib/CodeGen/ELFWriter.h | |
parent | ea6230afe75a11e59b2e669dc735c7c3759f4a5c (diff) | |
download | external_llvm-af939d83a0e1401f0219257327c0277c7fbd3753.zip external_llvm-af939d83a0e1401f0219257327c0277c7fbd3753.tar.gz external_llvm-af939d83a0e1401f0219257327c0277c7fbd3753.tar.bz2 |
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
Diffstat (limited to 'lib/CodeGen/ELFWriter.h')
-rw-r--r-- | lib/CodeGen/ELFWriter.h | 6 |
1 files changed, 3 insertions, 3 deletions
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); |