TargetRegistry: Change AsmPrinter constructor to be typed as returning an
[oota-llvm.git] / lib / Target / PowerPC / AsmPrinter / PPCAsmPrinter.cpp
index 4a44f4cb79b8458c3364763b31b7d562608f1a02..efbf7492480b21d063fad080159d75a0d1e2f43d 100644 (file)
@@ -1089,10 +1089,10 @@ bool PPCDarwinAsmPrinter::doFinalization(Module &M) {
 /// for a MachineFunction to the given output stream, in a format that the
 /// Darwin assembler can deal with.
 ///
-static FunctionPass *createPPCAsmPrinterPass(formatted_raw_ostream &o,
-                                             TargetMachine &tm,
-                                             const TargetAsmInfo *tai,
-                                             bool verbose) {
+static AsmPrinter *createPPCAsmPrinterPass(formatted_raw_ostream &o,
+                                           TargetMachine &tm,
+                                           const TargetAsmInfo *tai,
+                                           bool verbose) {
   const PPCSubtarget *Subtarget = &tm.getSubtarget<PPCSubtarget>();
 
   if (Subtarget->isDarwin())