remove dead code.
authorChris Lattner <sabre@nondot.org>
Mon, 27 Jul 2009 19:00:33 +0000 (19:00 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 27 Jul 2009 19:00:33 +0000 (19:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77233 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMTargetAsmInfo.h
lib/Target/ARM/ARMTargetMachine.cpp

index d3f2da0f4b098407f54204e089611383c193ccfc..8dbf544961eecee6cc3395c8f0a3ee939ec82a1b 100644 (file)
@@ -46,8 +46,6 @@ namespace llvm {
     unsigned countString(const char *p) const;
   };
 
-  typedef ARMTargetAsmInfo<TargetAsmInfo> ARMGenericTargetAsmInfo;
-
   EXTERN_TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo<TargetAsmInfo>);
 
   struct ARMDarwinTargetAsmInfo : public ARMTargetAsmInfo<DarwinTargetAsmInfo> {
index d71029475f2657ae0bf107ddd93156c8fe15a6c4..9f70ab900591b3f74b8bcf873f7eab1cbd165a05 100644 (file)
@@ -76,12 +76,11 @@ ThumbTargetMachine::ThumbTargetMachine(const Target &T, const Module &M,
 
 const TargetAsmInfo *ARMBaseTargetMachine::createTargetAsmInfo() const {
   switch (Subtarget.TargetType) {
-   case ARMSubtarget::isDarwin:
+  default: llvm_unreachable("Unknown ARM subtarget kind");
+  case ARMSubtarget::isDarwin:
     return new ARMDarwinTargetAsmInfo(*this);
-   case ARMSubtarget::isELF:
+  case ARMSubtarget::isELF:
     return new ARMELFTargetAsmInfo(*this);
-   default:
-    return new ARMGenericTargetAsmInfo(*this);
   }
 }