Remove extra \n from LLVM_UNREACHABLE calls.
authorTorok Edwin <edwintorok@gmail.com>
Sun, 12 Jul 2009 07:15:17 +0000 (07:15 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Sun, 12 Jul 2009 07:15:17 +0000 (07:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75416 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMCodeEmitter.cpp
lib/Target/ARM/ARMJITInfo.cpp
lib/Target/IA64/IA64ISelLowering.cpp
lib/Target/IA64/IA64InstrInfo.cpp
lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
lib/Target/X86/X86JITInfo.cpp
lib/Target/XCore/XCoreInstrInfo.cpp
lib/Target/XCore/XCoreRegisterInfo.cpp
lib/VMCore/Constants.cpp

index 35502aa4cd93b608d260bc9e9a3da7135583ede7..696547d556dc5898c043c9b7ec259d7b1454fb99 100644 (file)
@@ -594,7 +594,7 @@ void Emitter<CodeEmitter>::emitPseudoInstruction(const MachineInstr &MI) {
     // We allow inline assembler nodes with empty bodies - they can
     // implicitly define registers, which is ok for JIT.
     if (MI.getOperand(0).getSymbolName()[0]) {
-      llvm_report_error("JIT does not support inline asm!\n");
+      llvm_report_error("JIT does not support inline asm!");
     }
     break;
   }
index c9e04c9506f87fdacdcfcaaaa276f3af4e7727a6..a030a8c4222372d421f38a08b2f6be52455987ff 100644 (file)
@@ -104,7 +104,7 @@ extern "C" {
       );
 #else  // Not an ARM host
   void ARMCompilationCallback() {
-    LLVM_UNREACHABLE("Cannot call ARMCompilationCallback() on a non-ARM arch!\n");
+    LLVM_UNREACHABLE("Cannot call ARMCompilationCallback() on a non-ARM arch!");
   }
 #endif
 }
index 094f8c2f9994f194a33651b186bf941b9a9cf4f7..8e675eba9a66ca16ad695f9ca20e61e23720acbf 100644 (file)
@@ -194,7 +194,7 @@ void IA64TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG,
 
         switch (getValueType(I->getType()).getSimpleVT()) {
           default:
-            LLVM_UNREACHABLE("ERROR in LowerArgs: can't lower this type of arg.\n"); 
+            LLVM_UNREACHABLE("ERROR in LowerArgs: can't lower this type of arg."); 
           case MVT::f32:
             // fixme? (well, will need to for weird FP structy stuff,
             // see intel ABI docs)
@@ -493,7 +493,7 @@ IA64TargetLowering::LowerCallTo(SDValue Chain, const Type *RetTy,
   if (InFlag.getNode())
     CallOperands.push_back(InFlag);
   else
-    LLVM_UNREACHABLE("this should never happen!\n");
+    LLVM_UNREACHABLE("this should never happen!");
 
   // to make way for a hack:
   Chain = DAG.getNode(IA64ISD::BRCALL, dl, NodeTys,
index 0537c3ed01a15b28365a507ad34f242f1c3c4618..c76ca325f7811b32fafaeb9f0c53ecfc622d57b2 100644 (file)
@@ -129,8 +129,7 @@ void IA64InstrInfo::storeRegToAddr(MachineFunction &MF, unsigned SrcReg,
   } else if (RC == IA64::PRRegisterClass) {
     Opc = IA64::ST1;
   } else {
-    LLVM_UNREACHABLE(
-      "sorry, I don't know how to store this sort of reg\n");
+    LLVM_UNREACHABLE("sorry, I don't know how to store this sort of reg");
   }
 
   DebugLoc DL = DebugLoc::getUnknownLoc();
@@ -165,7 +164,7 @@ void IA64InstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB,
       .addReg(IA64::r0);
   } else {
     LLVM_UNREACHABLE(
-           "sorry, I don't know how to load this sort of reg from the stack\n");
+      "sorry, I don't know how to load this sort of reg from the stack");
   }
 }
 
@@ -182,7 +181,7 @@ void IA64InstrInfo::loadRegFromAddr(MachineFunction &MF, unsigned DestReg,
     Opc = IA64::LD1;
   } else {
     LLVM_UNREACHABLE(
-      "sorry, I don't know how to load this sort of reg\n");
+      "sorry, I don't know how to load this sort of reg");
   }
 
   DebugLoc DL = DebugLoc::getUnknownLoc();
index b9f1dbd984b29ae108a700e7d81848dbfff84cb7..4d0ee8d8c99c4cc3f654d18ae7ef06062d9a0527 100644 (file)
@@ -55,7 +55,7 @@ void X86ATTAsmPrinter::PrintPICBaseSymbol() const {
   else if (Subtarget->isTargetELF())
     O << ".Lllvm$" << getFunctionNumber() << ".$piclabel";
   else
-    LLVM_UNREACHABLE( "Don't know how to print PIC label!\n");
+    LLVM_UNREACHABLE( "Don't know how to print PIC label!");
 }
 
 /// PrintUnmangledNameSafely - Print out the printable characters in the name.
index 5b44e4f6de4b36966c56c9f339104cf24ed09376..4cc27efa1c038f76af7306bf648dff5670b4fe9a 100644 (file)
@@ -322,7 +322,7 @@ extern "C" {
 
 #else // Not an i386 host
   void X86CompilationCallback() {
-    LLVM_UNREACHABLE("Cannot call X86CompilationCallback() on a non-x86 arch!\n");
+    LLVM_UNREACHABLE("Cannot call X86CompilationCallback() on a non-x86 arch!");
   }
 #endif
 }
@@ -554,7 +554,7 @@ char* X86JITInfo::allocateThreadLocalMemory(size_t size) {
   TLSOffset -= size;
   return TLSOffset;
 #else
-  LLVM_UNREACHABLE("Cannot allocate thread local storage on this arch!\n");
+  LLVM_UNREACHABLE("Cannot allocate thread local storage on this arch!");
   return 0;
 #endif
 }
index 147d29d870b3e2d28b52fb5b65185e4db65136df..ea355047661ce51f759d0f787adefee3c92da904 100644 (file)
@@ -408,7 +408,7 @@ void XCoreInstrInfo::storeRegToAddr(MachineFunction &MF, unsigned SrcReg,
                             const TargetRegisterClass *RC,
                             SmallVectorImpl<MachineInstr*> &NewMIs) const
 {
-  LLVM_UNREACHABLE("unimplemented\n");
+  LLVM_UNREACHABLE("unimplemented");
 }
 
 void XCoreInstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB,
@@ -428,7 +428,7 @@ void XCoreInstrInfo::loadRegFromAddr(MachineFunction &MF, unsigned DestReg,
                               const TargetRegisterClass *RC,
                               SmallVectorImpl<MachineInstr*> &NewMIs) const
 {
-  LLVM_UNREACHABLE("unimplemented\n");
+  LLVM_UNREACHABLE("unimplemented");
 }
 
 bool XCoreInstrInfo::spillCalleeSavedRegisters(MachineBasicBlock &MBB,
index f0ff246c2c978c9fd5543a8f2e5876ebaba28dc3..7773064addf4e3ed1c6b61abc7d52e2714535902 100644 (file)
@@ -257,7 +257,7 @@ void XCoreRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
               .addReg(ScratchReg, RegState::Kill);
         break;
       default:
-        LLVM_UNREACHABLE("Unexpected Opcode\n");
+        LLVM_UNREACHABLE("Unexpected Opcode");
       }
     } else {
       switch (MI.getOpcode()) {
@@ -278,7 +278,7 @@ void XCoreRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
               .addImm(Offset);
         break;
       default:
-        LLVM_UNREACHABLE("Unexpected Opcode\n");
+        LLVM_UNREACHABLE("Unexpected Opcode");
       }
     }
   } else {
@@ -309,7 +309,7 @@ void XCoreRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
             .addImm(Offset);
       break;
     default:
-      LLVM_UNREACHABLE("Unexpected Opcode\n");
+      LLVM_UNREACHABLE("Unexpected Opcode");
     }
   }
   // Erase old instruction.
index 0f3239baebed75e1fe7e72b810b177b8076dc610..38b30c281eee9527487b03a0ed71794dc014a62d 100644 (file)
@@ -1121,7 +1121,7 @@ namespace llvm {
   template<class ConstantClass, class TypeClass>
   struct VISIBILITY_HIDDEN ConvertConstantType {
     static void convert(ConstantClass *OldC, const TypeClass *NewTy) {
-      LLVM_UNREACHABLE("This type cannot be converted!\n");
+      LLVM_UNREACHABLE("This type cannot be converted!");
     }
   };