summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-05 03:01:21 +0000
committerChris Lattner <sabre@nondot.org>2006-10-05 03:01:21 +0000
commit1da31ee472b9615d7329c656e2cc17c419ed7c95 (patch)
tree53acb45503d1236ffe89ff984efd14a4749361b7 /lib/CodeGen/AsmPrinter.cpp
parentedad2b783fe9ab20bdf0de2b3315559fb75f3a25 (diff)
downloadllvm-1da31ee472b9615d7329c656e2cc17c419ed7c95.tar.gz
llvm-1da31ee472b9615d7329c656e2cc17c419ed7c95.tar.bz2
llvm-1da31ee472b9615d7329c656e2cc17c419ed7c95.tar.xz
Pass the MachineFunction into EmitJumpTableInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30742 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp
index 247cceda7d..63d5f92182 100644
--- a/lib/CodeGen/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter.cpp
@@ -183,7 +183,8 @@ void AsmPrinter::EmitConstantPool(unsigned Alignment, const char *Section,
/// EmitJumpTableInfo - Print assembly representations of the jump tables used
/// by the current function to the current output stream.
///
-void AsmPrinter::EmitJumpTableInfo(MachineJumpTableInfo *MJTI) {
+void AsmPrinter::EmitJumpTableInfo(MachineJumpTableInfo *MJTI,
+ MachineFunction &MF) {
const std::vector<MachineJumpTableEntry> &JT = MJTI->getJumpTables();
if (JT.empty()) return;
const TargetData *TD = TM.getTargetData();