[llvm] r255894 - Simplify. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 17 06:19:52 PST 2015


Author: rafael
Date: Thu Dec 17 08:19:52 2015
New Revision: 255894

URL: http://llvm.org/viewvc/llvm-project?rev=255894&view=rev
Log:
Simplify. NFC.

Modified:
    llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp

Modified: llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp?rev=255894&r1=255893&r2=255894&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp Thu Dec 17 08:19:52 2015
@@ -113,13 +113,10 @@ unsigned PPCELFObjectWriter::GetRelocTyp
         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;




More information about the llvm-commits mailing list