diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-04-28 21:27:06 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-04-28 21:27:06 +0000 |
| commit | f12cc842b3a4de395fdf19ca25d9fa972ac67eea (patch) | |
| tree | b909800b5956c25a5a10f21e505e56dc473a3a38 /llvm/lib/Target/Sparc | |
| parent | a452f86593f4bd667e9056add765131b4bcc8e20 (diff) | |
| download | bcm5719-llvm-f12cc842b3a4de395fdf19ca25d9fa972ac67eea.tar.gz bcm5719-llvm-f12cc842b3a4de395fdf19ca25d9fa972ac67eea.zip | |
Tighten up the AnalysisUsage of lots of passes, primarily to correctly indicate whether or not they invalidate the CFGA
llvm-svn: 2386
Diffstat (limited to 'llvm/lib/Target/Sparc')
| -rw-r--r-- | llvm/lib/Target/Sparc/EmitAssembly.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
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<const Constant*> &moduleConstants); - }; |

