summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-25 22:41:33 +0000
committerChris Lattner <sabre@nondot.org>2010-01-25 22:41:33 +0000
commita4074257abe2f4648dbfd9bcc3a4092e67ffd74a (patch)
tree97c50ad4912ef71d0a5217f97ff38dbbac10f403 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent4e29505a95072cd0d12ee9b4fc23cd32faabc219 (diff)
downloadbcm5719-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.cpp5
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;
OpenPOWER on IntegriCloud