diff options
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); - }; |

