summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-03-07 19:06:14 +0000
committerRui Ueyama <ruiu@google.com>2016-03-07 19:06:14 +0000
commit68fae2347531b50b47ce2a2257446c31cd2e1f61 (patch)
treee1cfd1bd41d2a46948e8e252567c72220dcffefa
parent06eff5f2c8f9920d93ce485c7f41b598f0a99c1e (diff)
downloadbcm5719-llvm-68fae2347531b50b47ce2a2257446c31cd2e1f61.tar.gz
bcm5719-llvm-68fae2347531b50b47ce2a2257446c31cd2e1f61.zip
Do not use "default" for a fully-covered switch.
llvm-svn: 262846
-rw-r--r--lld/ELF/InputFiles.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index 51fe01e3e3a..1bd83f0ec24 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -416,12 +416,12 @@ bool BitcodeFile::classof(const InputFile *F) {
static uint8_t getGvVisibility(const GlobalValue *GV) {
switch (GV->getVisibility()) {
+ case GlobalValue::DefaultVisibility:
+ return STV_DEFAULT;
case GlobalValue::HiddenVisibility:
return STV_HIDDEN;
case GlobalValue::ProtectedVisibility:
return STV_PROTECTED;
- default:
- return STV_DEFAULT;
}
}
OpenPOWER on IntegriCloud