From fa199f3c168947f91e1935d23b5fd6ee3027ddd3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 27 Jul 2009 19:00:33 +0000 Subject: [PATCH] remove dead code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77233 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMTargetAsmInfo.h | 2 -- lib/Target/ARM/ARMTargetMachine.cpp | 7 +++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/Target/ARM/ARMTargetAsmInfo.h b/lib/Target/ARM/ARMTargetAsmInfo.h index d3f2da0f4b0..8dbf544961e 100644 --- a/lib/Target/ARM/ARMTargetAsmInfo.h +++ b/lib/Target/ARM/ARMTargetAsmInfo.h @@ -46,8 +46,6 @@ namespace llvm { unsigned countString(const char *p) const; }; - typedef ARMTargetAsmInfo ARMGenericTargetAsmInfo; - EXTERN_TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo); struct ARMDarwinTargetAsmInfo : public ARMTargetAsmInfo { diff --git a/lib/Target/ARM/ARMTargetMachine.cpp b/lib/Target/ARM/ARMTargetMachine.cpp index d71029475f2..9f70ab90059 100644 --- a/lib/Target/ARM/ARMTargetMachine.cpp +++ b/lib/Target/ARM/ARMTargetMachine.cpp @@ -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); } } -- 2.11.0