eliminate redundant argument to EmitJumpTableInfo

llvm-svn: 94464
This commit is contained in:
Chris Lattner 2010-01-25 22:41:33 +00:00
parent 4e29505a95
commit a4074257ab
10 changed files with 13 additions and 12 deletions

View File

@ -234,7 +234,7 @@ namespace llvm {
/// EmitJumpTableInfo - Print assembly representations of the jump tables
/// used by the current function to the current output stream.
///
void EmitJumpTableInfo(MachineJumpTableInfo *MJTI, MachineFunction &MF);
void EmitJumpTableInfo(MachineFunction &MF);
/// EmitGlobalVariable - Emit the specified global variable to the .s file.
virtual void EmitGlobalVariable(const GlobalVariable *GV);

View File

@ -469,8 +469,9 @@ void AsmPrinter::EmitConstantPool(MachineConstantPool *MCP) {
/// EmitJumpTableInfo - Print assembly representations of the jump tables used
/// by the current function to the current output stream.
///
void AsmPrinter::EmitJumpTableInfo(MachineJumpTableInfo *MJTI,
MachineFunction &MF) {
void AsmPrinter::EmitJumpTableInfo(MachineFunction &MF) {
MachineJumpTableInfo *MJTI = MF.getJumpTableInfo();
if (MJTI == 0) return;
const std::vector<MachineJumpTableEntry> &JT = MJTI->getJumpTables();
if (JT.empty()) return;

View File

@ -133,7 +133,7 @@ bool AlphaAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
EmitConstantPool(MF.getConstantPool());
// Print out jump tables referenced by the function
EmitJumpTableInfo(MF.getJumpTableInfo(), MF);
EmitJumpTableInfo(MF);
// Print out labels for the function.
const Function *F = MF.getFunction();

View File

@ -96,7 +96,7 @@ void BlackfinAsmPrinter::emitLinkage(const MCSymbol *GVSym,
bool BlackfinAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
SetupMachineFunction(MF);
EmitConstantPool(MF.getConstantPool());
EmitJumpTableInfo(MF.getJumpTableInfo(), MF);
EmitJumpTableInfo(MF);
const Function *F = MF.getFunction();
OutStreamer.SwitchSection(getObjFileLowering().SectionForGlobal(F, Mang, TM));

View File

@ -458,7 +458,7 @@ bool LinuxAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
O << "\t.size\t" << *CurrentFnSym << ",.-" << *CurrentFnSym << "\n";
// Print out jump tables referenced by the function.
EmitJumpTableInfo(MF.getJumpTableInfo(), MF);
EmitJumpTableInfo(MF);
// Emit post-function debug information.
DW->EndFunction(&MF);

View File

@ -256,7 +256,7 @@ bool MipsAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
EmitConstantPool(MF.getConstantPool());
// Print out jump tables referenced by the function
EmitJumpTableInfo(MF.getJumpTableInfo(), MF);
EmitJumpTableInfo(MF);
O << "\n\n";

View File

@ -671,7 +671,7 @@ bool PPCLinuxAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
DW->EndFunction(&MF);
// Print out jump tables referenced by the function.
EmitJumpTableInfo(MF.getJumpTableInfo(), MF);
EmitJumpTableInfo(MF);
// We didn't modify anything.
return false;
@ -765,7 +765,7 @@ bool PPCDarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
DW->EndFunction(&MF);
// Print out jump tables referenced by the function.
EmitJumpTableInfo(MF.getJumpTableInfo(), MF);
EmitJumpTableInfo(MF);
// We didn't modify anything.
return false;

View File

@ -138,7 +138,7 @@ bool SystemZAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
O << "\t.size\t" << *CurrentFnSym << ", .-" << *CurrentFnSym << '\n';
// Print out jump tables referenced by the function.
EmitJumpTableInfo(MF.getJumpTableInfo(), MF);
EmitJumpTableInfo(MF);
// We didn't modify anything
return false;

View File

@ -194,7 +194,7 @@ bool X86AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
DW->EndFunction(&MF);
// Print out jump tables referenced by the function.
EmitJumpTableInfo(MF.getJumpTableInfo(), MF);
EmitJumpTableInfo(MF);
// We didn't modify anything.
return false;

View File

@ -241,7 +241,7 @@ bool XCoreAsmPrinter::runOnMachineFunction(MachineFunction &MF)
EmitConstantPool(MF.getConstantPool());
// Print out jump tables referenced by the function
EmitJumpTableInfo(MF.getJumpTableInfo(), MF);
EmitJumpTableInfo(MF);
// Emit the function start directives
emitFunctionStart(MF);