From f12cc842b3a4de395fdf19ca25d9fa972ac67eea Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 28 Apr 2002 21:27:06 +0000 Subject: Tighten up the AnalysisUsage of lots of passes, primarily to correctly indicate whether or not they invalidate the CFGA llvm-svn: 2386 --- llvm/lib/Target/Sparc/EmitAssembly.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Target') diff --git a/llvm/lib/Target/Sparc/EmitAssembly.cpp b/llvm/lib/Target/Sparc/EmitAssembly.cpp index fa2aeaa3b11..f4ca22f9da9 100644 --- a/llvm/lib/Target/Sparc/EmitAssembly.cpp +++ b/llvm/lib/Target/Sparc/EmitAssembly.cpp @@ -209,6 +209,10 @@ struct SparcFunctionAsmPrinter : public FunctionPass, public AsmPrinter { return false; } + virtual void getAnalysisUsage(AnalysisUsage &AU) const { + AU.setPreservesAll(); + } + void emitFunction(const Function *F); private : void emitBasicBlock(const BasicBlock *BB); @@ -427,6 +431,11 @@ public: return false; } + virtual void getAnalysisUsage(AnalysisUsage &AU) const { + AU.setPreservesAll(); + } + +private: void emitGlobalsAndConstants(const Module *M); void printGlobalVariable(const GlobalVariable *GV); @@ -436,7 +445,6 @@ public: static void FoldConstants(const Module *M, std::hash_set &moduleConstants); - }; -- cgit v1.2.3