diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-25 22:41:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-25 22:41:33 +0000 |
commit | a4074257abe2f4648dbfd9bcc3a4092e67ffd74a (patch) | |
tree | 97c50ad4912ef71d0a5217f97ff38dbbac10f403 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 4e29505a95072cd0d12ee9b4fc23cd32faabc219 (diff) | |
download | bcm5719-llvm-a4074257abe2f4648dbfd9bcc3a4092e67ffd74a.tar.gz bcm5719-llvm-a4074257abe2f4648dbfd9bcc3a4092e67ffd74a.zip |
eliminate redundant argument to EmitJumpTableInfo
llvm-svn: 94464
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index c0c93506ddb..024a252d956 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -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; |