Restore some "small section" support code, reverting my patch from r76936.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78894 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-08-13 05:41:27 +00:00
parent 86e5f7b6f8
commit e3736f86ca
4 changed files with 59 additions and 6 deletions

View File

@@ -66,8 +66,8 @@ namespace llvm {
//===--------------------------------------------------------------------===//
// TargetLowering Implementation
//===--------------------------------------------------------------------===//
class MipsTargetLowering : public TargetLowering
{
class MipsTargetLowering : public TargetLowering {
public:
explicit MipsTargetLowering(MipsTargetMachine &TM);
@@ -88,6 +88,9 @@ namespace llvm {
// Subtarget Info
const MipsSubtarget *Subtarget;
bool IsGlobalInSmallSection(GlobalValue *GV);
bool IsInSmallSection(unsigned Size);
// Lower Operand helpers
SDValue LowerCallResult(SDValue Chain, SDValue InFlag,
unsigned CallConv, bool isVarArg,