aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/TargetELFWriterInfo.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
commit3d62a412fbe517fbbbf5661ef1a748a39f382aa3 (patch)
treed6648bf3e3b4963a89e082465766c115fcc1f496 /lib/Target/TargetELFWriterInfo.cpp
parent2c3f00cd948345b9a6b48401f319ee3fdf907269 (diff)
Remove getFunctionAlignment from TargetELFInfo and use new MachineFunction alignment method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetELFWriterInfo.cpp')
-rw-r--r--lib/Target/TargetELFWriterInfo.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/Target/TargetELFWriterInfo.cpp b/lib/Target/TargetELFWriterInfo.cpp
index 9651e65495..3631b35013 100644
--- a/lib/Target/TargetELFWriterInfo.cpp
+++ b/lib/Target/TargetELFWriterInfo.cpp
@@ -24,13 +24,3 @@ TargetELFWriterInfo::TargetELFWriterInfo(TargetMachine &tm) : TM(tm) {
TargetELFWriterInfo::~TargetELFWriterInfo() {}
-/// getFunctionAlignment - Returns the alignment for function 'F', targets
-/// with different alignment constraints should overload this method
-unsigned TargetELFWriterInfo::getFunctionAlignment(const Function *F) const {
- const TargetData *TD = TM.getTargetData();
- unsigned FnAlign = F->getAlignment();
- unsigned TDAlign = TD->getPointerABIAlignment();
- unsigned Align = std::max(FnAlign, TDAlign);
- assert(!(Align & (Align-1)) && "Alignment is not a power of two!");
- return Align;
-}