summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-01-10 16:47:17 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-01-10 16:47:17 +0000
commitedbb58c577f924dbb69c76f6fbaf421a669fed73 (patch)
tree26e86943cb91d6362fd8fbdd820baec22ae5ac2a /llvm/lib/CodeGen/LLVMTargetMachine.cpp
parentc07e34ceedaab7e4cdfab5a62820f24168392004 (diff)
downloadbcm5719-llvm-edbb58c577f924dbb69c76f6fbaf421a669fed73.tar.gz
bcm5719-llvm-edbb58c577f924dbb69c76f6fbaf421a669fed73.zip
Remove unnecessary default cases in switches that cover all enum values.
llvm-svn: 147855
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index abafc3f4b7f..28c63a794c0 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -92,7 +92,6 @@ AsmVerbose("asm-verbose", cl::desc("Add comments to directives."),
static bool getVerboseAsm() {
switch (AsmVerbose) {
- default:
case cl::BOU_UNSET: return TargetMachine::getAsmVerbosityDefault();
case cl::BOU_TRUE: return true;
case cl::BOU_FALSE: return false;
@@ -141,7 +140,6 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
OwningPtr<MCStreamer> AsmStreamer;
switch (FileType) {
- default: return true;
case CGFT_AssemblyFile: {
MCInstPrinter *InstPrinter =
getTarget().createMCInstPrinter(MAI.getAssemblerDialect(), MAI, STI);
OpenPOWER on IntegriCloud