mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
make this more efficient in release builds (time and space)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33239 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
950e9f83ea
commit
9a40c023cc
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user