aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/ELFWriter.h
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2009-07-13 22:40:39 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2009-07-13 22:40:39 +0000
commitd291066879ea4e577572fdbb22ba142826c98ccd (patch)
tree809d42bb044c570bc348aeac7ed49c56bd359b8b /lib/CodeGen/ELFWriter.h
parentdb1cd5eba551bdd3d7767207891b578f61f8b39d (diff)
downloadexternal_llvm-d291066879ea4e577572fdbb22ba142826c98ccd.zip
external_llvm-d291066879ea4e577572fdbb22ba142826c98ccd.tar.gz
external_llvm-d291066879ea4e577572fdbb22ba142826c98ccd.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.h6
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);