diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-02 23:37:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-02 23:37:42 +0000 |
commit | b0d44c38077d620ff69265ec0ccd9a2c8aa39b7a (patch) | |
tree | 599bc831e1b54f8fffd45fb217e6b52519247efd /llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp | |
parent | e67d01a9a8dbf25ba502411ac7319be3e6789e0e (diff) | |
download | bcm5719-llvm-b0d44c38077d620ff69265ec0ccd9a2c8aa39b7a.tar.gz bcm5719-llvm-b0d44c38077d620ff69265ec0ccd9a2c8aa39b7a.zip |
refactor code so that LLVMTargetMachine creates the asmstreamer and
mccontext instead of having AsmPrinter do it. This allows other
types of MCStreamer's to be passed in.
llvm-svn: 95155
Diffstat (limited to 'llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp b/llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp index a4198446ace..f5122565ab9 100644 --- a/llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp +++ b/llvm/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp @@ -37,8 +37,9 @@ namespace { /// explicit AlphaAsmPrinter(formatted_raw_ostream &o, TargetMachine &tm, - const MCAsmInfo *T, bool V) - : AsmPrinter(o, tm, T, V) {} + MCContext &Ctx, MCStreamer &Streamer, + const MCAsmInfo *T) + : AsmPrinter(o, tm, Ctx, Streamer, T) {} virtual const char *getPassName() const { return "Alpha Assembly Printer"; |