summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetLoweringObjectFile.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/Target/TargetLoweringObjectFile.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/Target/TargetLoweringObjectFile.cpp')
-rw-r--r--llvm/lib/Target/TargetLoweringObjectFile.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index fc8b67b0018..9f2b715481e 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp
@@ -160,7 +160,6 @@ SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalValue *GV,
// relocation, then we may have to drop this into a wriable data section
// even though it is marked const.
switch (C->getRelocationInfo()) {
- default: assert(0 && "unknown relocation info kind");
case Constant::NoRelocation:
// If the global is required to have a unique address, it can't be put
// into a mergable section: just drop it into the general read-only
@@ -234,7 +233,6 @@ SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalValue *GV,
return SectionKind::getDataNoRel();
switch (C->getRelocationInfo()) {
- default: assert(0 && "unknown relocation info kind");
case Constant::NoRelocation:
return SectionKind::getDataNoRel();
case Constant::LocalRelocation:
OpenPOWER on IntegriCloud