aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-21 18:38:57 +0000
committerChris Lattner <sabre@nondot.org>2009-07-21 18:38:57 +0000
commit40bbebde9d250b875a47a688d0c6552834ada48f (patch)
treed754be08833dd4af5a831902a23617737d4b98aa /include/llvm/CodeGen
parent4b938958bcc59586508bc9681e75c2e3f5164672 (diff)
downloadexternal_llvm-40bbebde9d250b875a47a688d0c6552834ada48f.zip
external_llvm-40bbebde9d250b875a47a688d0c6552834ada48f.tar.gz
external_llvm-40bbebde9d250b875a47a688d0c6552834ada48f.tar.bz2
make AsmPrinter::doFinalization iterate over the global variables
and call PrintGlobalVariable, allowing elimination and simplification of various targets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76604 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index c15e279..c3d4d60 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -211,6 +211,11 @@ namespace llvm {
unsigned AsmVariant,
const char *ExtraCode);
+
+ /// PrintGlobalVariable - Emit the specified global variable and its
+ /// initializer to the output stream.
+ virtual void PrintGlobalVariable(const GlobalVariable *GV) = 0;
+
/// SetupMachineFunction - This should be called when a new MachineFunction
/// is being processed from runOnMachineFunction.
void SetupMachineFunction(MachineFunction &MF);