summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-18 20:17:03 +0000
committerChris Lattner <sabre@nondot.org>2009-09-18 20:17:03 +0000
commit71a15b131658da5478468f8ab4da437366b461ca (patch)
treef08a28c2c8e1c55b6f740d3e42f75ffb1aaa6b46 /llvm/lib
parent5e9a5c3664038a61d210a1284aa403a2e2c2014c (diff)
downloadbcm5719-llvm-71a15b131658da5478468f8ab4da437366b461ca.tar.gz
bcm5719-llvm-71a15b131658da5478468f8ab4da437366b461ca.zip
add a new hook to allow targets to splat stuff at the end of the file.
Overriding doFinalization is pretty lame. llvm-svn: 82268
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index e29bff5f66a..dec78a398fa 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -208,6 +208,11 @@ bool AsmPrinter::doFinalization(Module &M) {
if (MAI->getNonexecutableStackDirective())
O << MAI->getNonexecutableStackDirective() << '\n';
+
+ // Allow the target to emit any magic that it wants at the end of the file,
+ // after everything else has gone out.
+ EmitEndOfAsmFile(M);
+
delete Mang; Mang = 0;
DW = 0; MMI = 0;
OpenPOWER on IntegriCloud