summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/AsmPrinter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-28 01:02:27 +0000
committerChris Lattner <sabre@nondot.org>2010-01-28 01:02:27 +0000
commit14c38ec2afeaf25c53a50c2c65116aca8c889401 (patch)
treea8ed93037a7e6aaf38c701f3af60e8f86f81c30b /include/llvm/CodeGen/AsmPrinter.h
parenta2406190ca28dc5901dfe747849c8eda9c29d7ee (diff)
downloadllvm-14c38ec2afeaf25c53a50c2c65116aca8c889401.tar.gz
llvm-14c38ec2afeaf25c53a50c2c65116aca8c889401.tar.bz2
llvm-14c38ec2afeaf25c53a50c2c65116aca8c889401.tar.xz
Remove the argument from EmitJumpTableInfo, because it doesn't need it.
Move the X86 implementation of function body emission up to AsmPrinter::EmitFunctionBody, which works by calling the virtual EmitInstruction method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94716 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/AsmPrinter.h')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 31cc868f05..1970e63efe 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -214,18 +214,27 @@ namespace llvm {
/// EmitFunctionHeader - This method emits the header for the current
/// function.
void EmitFunctionHeader();
+
+ /// EmitFunctionBody - This method emits the body and trailer for a
+ /// function.
+ void EmitFunctionBody();
+ /// EmitInstruction - Targets should implement this to emit instructions.
+ virtual void EmitInstruction(const MachineInstr *MI) {
+ assert(0 && "EmitInstruction not implemented");
+ }
+
/// EmitConstantPool - Print to the current output stream assembly
/// representations of the constants in the constant pool MCP. This is
/// used to print out constants which have been "spilled to memory" by
/// the code generator.
///
virtual void EmitConstantPool();
-
+
/// EmitJumpTableInfo - Print assembly representations of the jump tables
/// used by the current function to the current output stream.
///
- void EmitJumpTableInfo(MachineFunction &MF);
+ void EmitJumpTableInfo();
/// EmitGlobalVariable - Emit the specified global variable to the .s file.
virtual void EmitGlobalVariable(const GlobalVariable *GV);