summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2018-05-10 14:16:41 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2018-05-10 14:16:41 +0000
commite1b0e29e1e8c6f06f57e4cf6ea366c58b29e0a76 (patch)
tree9d11dc403fa65b861e94b2c145c5b1dc609efb7c
parenta68aee07d59de86958427154650eb9ba7c4ddd23 (diff)
downloadbcm5719-llvm-e1b0e29e1e8c6f06f57e4cf6ea366c58b29e0a76.tar.gz
bcm5719-llvm-e1b0e29e1e8c6f06f57e4cf6ea366c58b29e0a76.zip
[DWARF] dwarfgen::LineTable::writeData(): pacify -Wcovered-switch-default
llvm-svn: 331983
-rw-r--r--llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp b/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
index a6aa1b79070..52d92f44078 100644
--- a/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
+++ b/llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
@@ -203,16 +203,15 @@ void dwarfgen::LineTable::writeData(ArrayRef<ValueAndLength> Data,
case Long:
case Quad:
Asm.OutStreamer->EmitIntValue(Entry.Value, Entry.Length);
- break;
+ continue;
case ULEB:
Asm.EmitULEB128(Entry.Value);
- break;
+ continue;
case SLEB:
Asm.EmitSLEB128(Entry.Value);
- break;
- default:
- llvm_unreachable("unsupported ValueAndLength Length value");
+ continue;
}
+ llvm_unreachable("unsupported ValueAndLength Length value");
}
}
OpenPOWER on IntegriCloud