diff options
Diffstat (limited to 'lib/Target/Blackfin')
| -rw-r--r-- | lib/Target/Blackfin/BlackfinISelLowering.cpp | 7 | ||||
| -rw-r--r-- | lib/Target/Blackfin/BlackfinISelLowering.h | 1 | 
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/Target/Blackfin/BlackfinISelLowering.cpp b/lib/Target/Blackfin/BlackfinISelLowering.cpp index 1e1f8c9..b097931 100644 --- a/lib/Target/Blackfin/BlackfinISelLowering.cpp +++ b/lib/Target/Blackfin/BlackfinISelLowering.cpp @@ -121,6 +121,8 @@ BlackfinTargetLowering::BlackfinTargetLowering(TargetMachine &TM)    setOperationAction(ISD::VAEND, MVT::Other, Expand);    setOperationAction(ISD::STACKSAVE, MVT::Other, Expand);    setOperationAction(ISD::STACKRESTORE, MVT::Other, Expand); + +  setMinFunctionAlignment(2);  }  const char *BlackfinTargetLowering::getTargetNodeName(unsigned Opcode) const { @@ -497,11 +499,6 @@ BlackfinTargetLowering::ReplaceNodeResults(SDNode *N,    }  } -/// getFunctionAlignment - Return the Log2 alignment of this function. -unsigned BlackfinTargetLowering::getFunctionAlignment(const Function *F) const { -  return 2; -} -  //===----------------------------------------------------------------------===//  //                         Blackfin Inline Assembly Support  //===----------------------------------------------------------------------===// diff --git a/lib/Target/Blackfin/BlackfinISelLowering.h b/lib/Target/Blackfin/BlackfinISelLowering.h index 102c830..9a54557 100644 --- a/lib/Target/Blackfin/BlackfinISelLowering.h +++ b/lib/Target/Blackfin/BlackfinISelLowering.h @@ -53,7 +53,6 @@ namespace llvm {                                        EVT VT) const;      virtual bool isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const;      const char *getTargetNodeName(unsigned Opcode) const; -    unsigned getFunctionAlignment(const Function *F) const;    private:      SDValue LowerGlobalAddress(SDValue Op, SelectionDAG &DAG) const;  | 
