forked from OSchip/llvm-project
Do not use "default" for a fully-covered switch.
llvm-svn: 262846
This commit is contained in:
parent
06eff5f2c8
commit
68fae23475
|
@ -416,12 +416,12 @@ bool BitcodeFile::classof(const InputFile *F) {
|
||||||
|
|
||||||
static uint8_t getGvVisibility(const GlobalValue *GV) {
|
static uint8_t getGvVisibility(const GlobalValue *GV) {
|
||||||
switch (GV->getVisibility()) {
|
switch (GV->getVisibility()) {
|
||||||
|
case GlobalValue::DefaultVisibility:
|
||||||
|
return STV_DEFAULT;
|
||||||
case GlobalValue::HiddenVisibility:
|
case GlobalValue::HiddenVisibility:
|
||||||
return STV_HIDDEN;
|
return STV_HIDDEN;
|
||||||
case GlobalValue::ProtectedVisibility:
|
case GlobalValue::ProtectedVisibility:
|
||||||
return STV_PROTECTED;
|
return STV_PROTECTED;
|
||||||
default:
|
|
||||||
return STV_DEFAULT;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue