add target hooks for emitting random gunk before and after the function body.
[oota-llvm.git] / include / llvm / CodeGen / AsmPrinter.h
index 487c5422c3b95deb214d14e2ea0c65eaf5be1550..ba7d1385ff966db0a403d7a03f2d8eb6d00b556c 100644 (file)
@@ -233,6 +233,14 @@ namespace llvm {
       assert(0 && "EmitInstruction not implemented");
     }
     
+    /// EmitFunctionBodyStart - Targets can override this to emit stuff before
+    /// the first basic block in the function.
+    virtual void EmitFunctionBodyStart() {}
+
+    /// EmitFunctionBodyEnd - Targets can override this to emit stuff after
+    /// the last basic block in the function.
+    virtual void EmitFunctionBodyEnd() {}
+    
     /// 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