Simplify. NFC.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 17 Dec 2015 14:19:52 +0000 (14:19 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 17 Dec 2015 14:19:52 +0000 (14:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255894 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp

index 75ba12b..dd99495 100644 (file)
@@ -113,13 +113,10 @@ unsigned PPCELFObjectWriter::GetRelocType(const MCValue &Target,
         break;
       }
       break;
-    case PPC::fixup_ppc_half16ds: {
-      raw_ostream &OS = *(new raw_fd_ostream(2, false));
-      Target.print(OS);
-      OS << "\n";
+    case PPC::fixup_ppc_half16ds:
+      Target.print(errs());
+      errs() << '\n';
       report_fatal_error("Invalid PC-relative half16ds relocation");
-      break;
-    }
     case FK_Data_4:
     case FK_PCRel_4:
       Type = ELF::R_PPC_REL32;