eliminate redundant argument to EmitJumpTableInfo

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94464 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-01-25 22:41:33 +00:00
parent 541ba7dd92
commit 44e87255e9
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 /// EmitJumpTableInfo - Print assembly representations of the jump tables
/// used by the current function to the current output stream. /// 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. /// EmitGlobalVariable - Emit the specified global variable to the .s file.
virtual void EmitGlobalVariable(const GlobalVariable *GV); 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 /// EmitJumpTableInfo - Print assembly representations of the jump tables used
/// by the current function to the current output stream. /// by the current function to the current output stream.
/// ///
void AsmPrinter::EmitJumpTableInfo(MachineJumpTableInfo *MJTI, void AsmPrinter::EmitJumpTableInfo(MachineFunction &MF) {
MachineFunction &MF) { MachineJumpTableInfo *MJTI = MF.getJumpTableInfo();
if (MJTI == 0) return;
const std::vector<MachineJumpTableEntry> &JT = MJTI->getJumpTables(); const std::vector<MachineJumpTableEntry> &JT = MJTI->getJumpTables();
if (JT.empty()) return; if (JT.empty()) return;

View File

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

View File

@ -96,7 +96,7 @@ void BlackfinAsmPrinter::emitLinkage(const MCSymbol *GVSym,
bool BlackfinAsmPrinter::runOnMachineFunction(MachineFunction &MF) { bool BlackfinAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
SetupMachineFunction(MF); SetupMachineFunction(MF);
EmitConstantPool(MF.getConstantPool()); EmitConstantPool(MF.getConstantPool());
EmitJumpTableInfo(MF.getJumpTableInfo(), MF); EmitJumpTableInfo(MF);
const Function *F = MF.getFunction(); const Function *F = MF.getFunction();
OutStreamer.SwitchSection(getObjFileLowering().SectionForGlobal(F, Mang, TM)); 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"; O << "\t.size\t" << *CurrentFnSym << ",.-" << *CurrentFnSym << "\n";
// Print out jump tables referenced by the function. // Print out jump tables referenced by the function.
EmitJumpTableInfo(MF.getJumpTableInfo(), MF); EmitJumpTableInfo(MF);
// Emit post-function debug information. // Emit post-function debug information.
DW->EndFunction(&MF); DW->EndFunction(&MF);

View File

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

View File

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

View File

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

View File

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

View File

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