summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ELF.h
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2009-08-08 17:29:04 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2009-08-08 17:29:04 +0000
commit72dd2eef36d04cff7d3941bb4f4822b4ffee86b2 (patch)
tree5552494d6b20e4ce679198e5e95bc04e329cabbe /llvm/lib/CodeGen/ELF.h
parent028f6dc4c2f2922c6e73275c05c866eeb924a290 (diff)
downloadbcm5719-llvm-72dd2eef36d04cff7d3941bb4f4822b4ffee86b2.tar.gz
bcm5719-llvm-72dd2eef36d04cff7d3941bb4f4822b4ffee86b2.zip
ELF improvements:
Handle large integers, x86_fp80, ConstantAggregateZero, and two more ConstantExpr: GetElementPtr and IntToPtr Set SHF_MERGE bit for mergeable strings Avoid zero initialized strings to be classified as a bss symbol Don't allow common symbols to be classified as STB_WEAK Add a constant to be used as a global value offset in data relocations llvm-svn: 78476
Diffstat (limited to 'llvm/lib/CodeGen/ELF.h')
-rw-r--r--llvm/lib/CodeGen/ELF.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/ELF.h b/llvm/lib/CodeGen/ELF.h
index 499af10c79e..c9ec9b1912b 100644
--- a/llvm/lib/CodeGen/ELF.h
+++ b/llvm/lib/CodeGen/ELF.h
@@ -136,11 +136,11 @@ namespace llvm {
return Sym;
}
- // getFileSym - Returns a elf symbol to represent the module identifier
- static ELFSym *getUndefGV(const GlobalValue *GV) {
+ // getUndefGV - Returns a STT_NOTYPE symbol
+ static ELFSym *getUndefGV(const GlobalValue *GV, unsigned Bind) {
ELFSym *Sym = new ELFSym();
Sym->Source.GV = GV;
- Sym->setBind(STB_GLOBAL);
+ Sym->setBind(Bind);
Sym->setType(STT_NOTYPE);
Sym->setVisibility(STV_DEFAULT);
Sym->SectionIdx = 0; //ELFSection::SHN_UNDEF;
OpenPOWER on IntegriCloud