[llvm-commits] [llvm] r77233 - in /llvm/trunk/lib/Target/ARM: ARMTargetAsmInfo.h ARMTargetMachine.cpp
Chris Lattner
sabre at nondot.org
Mon Jul 27 12:00:33 PDT 2009
Author: lattner
Date: Mon Jul 27 14:00:33 2009
New Revision: 77233
URL: http://llvm.org/viewvc/llvm-project?rev=77233&view=rev
Log:
remove dead code.
Modified:
llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.h
llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.h?rev=77233&r1=77232&r2=77233&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.h (original)
+++ llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.h Mon Jul 27 14:00:33 2009
@@ -46,8 +46,6 @@
unsigned countString(const char *p) const;
};
- typedef ARMTargetAsmInfo<TargetAsmInfo> ARMGenericTargetAsmInfo;
-
EXTERN_TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo<TargetAsmInfo>);
struct ARMDarwinTargetAsmInfo : public ARMTargetAsmInfo<DarwinTargetAsmInfo> {
Modified: llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp?rev=77233&r1=77232&r2=77233&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp Mon Jul 27 14:00:33 2009
@@ -76,12 +76,11 @@
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);
}
}
More information about the llvm-commits
mailing list