summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86ELFWriterInfo.cpp
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2009-07-02 02:13:13 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2009-07-02 02:13:13 +0000
commiteefbf1961c10a0d29408d8cab59e3af96d7b2d11 (patch)
tree83fb56ebb61c2ad383cbed49a02e1208ebf171a7 /llvm/lib/Target/X86/X86ELFWriterInfo.cpp
parent9bff6531fd344adc7b3ab441aadadbfb3c8c6e7e (diff)
downloadbcm5719-llvm-eefbf1961c10a0d29408d8cab59e3af96d7b2d11.tar.gz
bcm5719-llvm-eefbf1961c10a0d29408d8cab59e3af96d7b2d11.zip
Remove getFunctionAlignment from TargetELFInfo and use new MachineFunction alignment method
llvm-svn: 74686
Diffstat (limited to 'llvm/lib/Target/X86/X86ELFWriterInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86ELFWriterInfo.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/Target/X86/X86ELFWriterInfo.cpp b/llvm/lib/Target/X86/X86ELFWriterInfo.cpp
index 315118f6109..912ab0e886f 100644
--- a/llvm/lib/Target/X86/X86ELFWriterInfo.cpp
+++ b/llvm/lib/Target/X86/X86ELFWriterInfo.cpp
@@ -59,18 +59,6 @@ unsigned X86ELFWriterInfo::getRelocationType(unsigned MachineRelTy) const {
return 0;
}
-unsigned X86ELFWriterInfo::getFunctionAlignment(const Function *F) const {
- unsigned FnAlign = 4;
-
- if (F->hasFnAttr(Attribute::OptimizeForSize))
- FnAlign = 1;
-
- if (F->getAlignment())
- FnAlign = Log2_32(F->getAlignment());
-
- return (1 << FnAlign);
-}
-
long int X86ELFWriterInfo::getAddendForRelTy(unsigned RelTy) const {
if (is64Bit) {
switch(RelTy) {
OpenPOWER on IntegriCloud