[llvm] r186017 - Replacing an empty switch with its moral equivalent. No functional changes intended.
Aaron Ballman
aaron at aaronballman.com
Wed Jul 10 10:19:22 PDT 2013
Author: aaronballman
Date: Wed Jul 10 12:19:22 2013
New Revision: 186017
URL: http://llvm.org/viewvc/llvm-project?rev=186017&view=rev
Log:
Replacing an empty switch with its moral equivalent. No functional changes intended.
Modified:
llvm/trunk/lib/Target/MBlaze/MCTargetDesc/MBlazeMCTargetDesc.cpp
llvm/trunk/lib/Target/R600/R600InstrInfo.cpp
Modified: llvm/trunk/lib/Target/MBlaze/MCTargetDesc/MBlazeMCTargetDesc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MBlaze/MCTargetDesc/MBlazeMCTargetDesc.cpp?rev=186017&r1=186016&r2=186017&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MBlaze/MCTargetDesc/MBlazeMCTargetDesc.cpp (original)
+++ llvm/trunk/lib/Target/MBlaze/MCTargetDesc/MBlazeMCTargetDesc.cpp Wed Jul 10 12:19:22 2013
@@ -54,11 +54,7 @@ static MCSubtargetInfo *createMBlazeMCSu
}
static MCAsmInfo *createMCAsmInfo(const MCRegisterInfo &MRI, StringRef TT) {
- Triple TheTriple(TT);
- switch (TheTriple.getOS()) {
- default:
- return new MBlazeMCAsmInfo();
- }
+ return new MBlazeMCAsmInfo();
}
static MCCodeGenInfo *createMBlazeMCCodeGenInfo(StringRef TT, Reloc::Model RM,
Modified: llvm/trunk/lib/Target/R600/R600InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/R600InstrInfo.cpp?rev=186017&r1=186016&r2=186017&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/R600InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/R600/R600InstrInfo.cpp Wed Jul 10 12:19:22 2013
@@ -114,9 +114,7 @@ bool R600InstrInfo::isPlaceHolderOpcode(
}
bool R600InstrInfo::isReductionOp(unsigned Opcode) const {
- switch(Opcode) {
- default: return false;
- }
+ return false;
}
bool R600InstrInfo::isCubeOp(unsigned Opcode) const {
More information about the llvm-commits
mailing list