make this more efficient in release builds (time and space)

llvm-svn: 33239
This commit is contained in:
Chris Lattner 2007-01-15 18:28:18 +00:00
parent cf7ebf5cef
commit 90d2e426f9
1 changed files with 2 additions and 6 deletions

View File

@ -873,11 +873,9 @@ void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
abort();
}
switch (GV->getVisibility()) {
default: assert(0 && "Invalid visibility style!");
case GlobalValue::DefaultVisibility: break;
case GlobalValue::HiddenVisibility: Out << "hidden "; break;
default:
cerr << "Invalid visibility style!\n";
abort();
}
}
@ -982,11 +980,9 @@ void AssemblyWriter::printFunction(const Function *F) {
abort();
}
switch (F->getVisibility()) {
default: assert(0 && "Invalid visibility style!");
case GlobalValue::DefaultVisibility: break;
case GlobalValue::HiddenVisibility: Out << "hidden "; break;
default:
cerr << "Invalid visibility style!\n";
abort();
}
}