forked from OSchip/llvm-project
createXXXMCCodeGenInfo should be static.
llvm-svn: 135826
This commit is contained in:
parent
ad5f485957
commit
6376593ed1
|
@ -49,8 +49,8 @@ static MCSubtargetInfo *createAlphaMCSubtargetInfo(StringRef TT, StringRef CPU,
|
|||
return X;
|
||||
}
|
||||
|
||||
MCCodeGenInfo *createAlphaMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
static MCCodeGenInfo *createAlphaMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
MCCodeGenInfo *X = new MCCodeGenInfo();
|
||||
X->InitMCCodeGenInfo(Reloc::PIC_, CM);
|
||||
return X;
|
||||
|
|
|
@ -50,8 +50,8 @@ static MCSubtargetInfo *createBlackfinMCSubtargetInfo(StringRef TT,
|
|||
return X;
|
||||
}
|
||||
|
||||
MCCodeGenInfo *createBlackfinMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
static MCCodeGenInfo *createBlackfinMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
MCCodeGenInfo *X = new MCCodeGenInfo();
|
||||
X->InitMCCodeGenInfo(RM, CM);
|
||||
return X;
|
||||
|
|
|
@ -60,7 +60,7 @@ static MCAsmInfo *createSPUMCAsmInfo(const Target &T, StringRef TT) {
|
|||
return MAI;
|
||||
}
|
||||
|
||||
MCCodeGenInfo *createSPUMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
static MCCodeGenInfo *createSPUMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
MCCodeGenInfo *X = new MCCodeGenInfo();
|
||||
// For the time being, use static relocations, since there's really no
|
||||
|
|
|
@ -57,8 +57,8 @@ static MCAsmInfo *createMCAsmInfo(const Target &T, StringRef TT) {
|
|||
}
|
||||
}
|
||||
|
||||
MCCodeGenInfo *createMBlazeMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
static MCCodeGenInfo *createMBlazeMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
MCCodeGenInfo *X = new MCCodeGenInfo();
|
||||
if (RM == Reloc::Default)
|
||||
RM = Reloc::Static;
|
||||
|
|
|
@ -48,8 +48,8 @@ static MCSubtargetInfo *createMSP430MCSubtargetInfo(StringRef TT, StringRef CPU,
|
|||
return X;
|
||||
}
|
||||
|
||||
MCCodeGenInfo *createMSP430MCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
static MCCodeGenInfo *createMSP430MCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
MCCodeGenInfo *X = new MCCodeGenInfo();
|
||||
X->InitMCCodeGenInfo(RM, CM);
|
||||
return X;
|
||||
|
|
|
@ -59,8 +59,8 @@ static MCAsmInfo *createMipsMCAsmInfo(const Target &T, StringRef TT) {
|
|||
return MAI;
|
||||
}
|
||||
|
||||
MCCodeGenInfo *createMipsMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
static MCCodeGenInfo *createMipsMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
MCCodeGenInfo *X = new MCCodeGenInfo();
|
||||
if (RM == Reloc::Default) {
|
||||
// Abicall enables PIC by default
|
||||
|
|
|
@ -49,8 +49,8 @@ static MCSubtargetInfo *createPTXMCSubtargetInfo(StringRef TT, StringRef CPU,
|
|||
return X;
|
||||
}
|
||||
|
||||
MCCodeGenInfo *createPTXMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
static MCCodeGenInfo *createPTXMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
MCCodeGenInfo *X = new MCCodeGenInfo();
|
||||
X->InitMCCodeGenInfo(RM, CM);
|
||||
return X;
|
||||
|
|
|
@ -72,8 +72,8 @@ static MCAsmInfo *createPPCMCAsmInfo(const Target &T, StringRef TT) {
|
|||
return MAI;
|
||||
}
|
||||
|
||||
MCCodeGenInfo *createPPCMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
static MCCodeGenInfo *createPPCMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
MCCodeGenInfo *X = new MCCodeGenInfo();
|
||||
|
||||
if (RM == Reloc::Default) {
|
||||
|
|
|
@ -48,8 +48,8 @@ static MCSubtargetInfo *createSparcMCSubtargetInfo(StringRef TT, StringRef CPU,
|
|||
return X;
|
||||
}
|
||||
|
||||
MCCodeGenInfo *createSparcMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
static MCCodeGenInfo *createSparcMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
MCCodeGenInfo *X = new MCCodeGenInfo();
|
||||
X->InitMCCodeGenInfo(RM, CM);
|
||||
return X;
|
||||
|
|
|
@ -49,8 +49,8 @@ static MCSubtargetInfo *createSystemZMCSubtargetInfo(StringRef TT,
|
|||
return X;
|
||||
}
|
||||
|
||||
MCCodeGenInfo *createSystemZMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
static MCCodeGenInfo *createSystemZMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
MCCodeGenInfo *X = new MCCodeGenInfo();
|
||||
if (RM == Reloc::Default)
|
||||
RM = Reloc::Static;
|
||||
|
|
|
@ -314,8 +314,8 @@ static MCAsmInfo *createX86MCAsmInfo(const Target &T, StringRef TT) {
|
|||
return MAI;
|
||||
}
|
||||
|
||||
MCCodeGenInfo *createX86MCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
static MCCodeGenInfo *createX86MCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
MCCodeGenInfo *X = new MCCodeGenInfo();
|
||||
|
||||
Triple T(TT);
|
||||
|
|
|
@ -59,8 +59,8 @@ static MCAsmInfo *createXCoreMCAsmInfo(const Target &T, StringRef TT) {
|
|||
return MAI;
|
||||
}
|
||||
|
||||
MCCodeGenInfo *createXCoreMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
static MCCodeGenInfo *createXCoreMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM) {
|
||||
MCCodeGenInfo *X = new MCCodeGenInfo();
|
||||
X->InitMCCodeGenInfo(RM, CM);
|
||||
return X;
|
||||
|
|
Loading…
Reference in New Issue