summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/AsmPrinter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-28 01:58:58 +0000
committerChris Lattner <sabre@nondot.org>2010-01-28 01:58:58 +0000
commitedfe776ac29d9fd48ae8967f6742400aad65e39c (patch)
treeea57d2e90e755ff0e2e947e7f63ac8b6b33f7075 /include/llvm/CodeGen/AsmPrinter.h
parent5fef8bc1cbcdf70c241ebeb0626849cecd412980 (diff)
downloadllvm-edfe776ac29d9fd48ae8967f6742400aad65e39c.tar.gz
llvm-edfe776ac29d9fd48ae8967f6742400aad65e39c.tar.bz2
llvm-edfe776ac29d9fd48ae8967f6742400aad65e39c.tar.xz
add target hooks for emitting random gunk before and after the function body.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/AsmPrinter.h')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 487c5422c3..ba7d1385ff 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -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