diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-27 19:00:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-27 19:00:33 +0000 |
commit | b79a26b1b5ea8106e664d5951ddeb711fe5f0cc9 (patch) | |
tree | 42ea9f516e0941789195cf62b5269dd7d8168bcd /lib/Target/ARM | |
parent | 5436d9fd39977adebc39b6c2fc31d93e038a5d8d (diff) | |
download | external_llvm-b79a26b1b5ea8106e664d5951ddeb711fe5f0cc9.zip external_llvm-b79a26b1b5ea8106e664d5951ddeb711fe5f0cc9.tar.gz external_llvm-b79a26b1b5ea8106e664d5951ddeb711fe5f0cc9.tar.bz2 |
remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r-- | lib/Target/ARM/ARMTargetAsmInfo.h | 2 | ||||
-rw-r--r-- | 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 d3f2da0..8dbf544 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<TargetAsmInfo> ARMGenericTargetAsmInfo; - EXTERN_TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo<TargetAsmInfo>); struct ARMDarwinTargetAsmInfo : public ARMTargetAsmInfo<DarwinTargetAsmInfo> { diff --git a/lib/Target/ARM/ARMTargetMachine.cpp b/lib/Target/ARM/ARMTargetMachine.cpp index d710294..9f70ab9 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); } } |