mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
simplify code and print visibility for declarations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41173 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6307c29d2e
commit
3aa6066d01
@ -995,13 +995,10 @@ void AssemblyWriter::printFunction(const Function *F) {
|
||||
if (AnnotationWriter) AnnotationWriter->emitFunctionAnnot(F, Out);
|
||||
|
||||
if (F->isDeclaration())
|
||||
switch (F->getLinkage()) {
|
||||
case GlobalValue::DLLImportLinkage: Out << "declare dllimport "; break;
|
||||
case GlobalValue::ExternalWeakLinkage: Out << "declare extern_weak "; break;
|
||||
default: Out << "declare ";
|
||||
}
|
||||
else {
|
||||
Out << "declare ";
|
||||
else
|
||||
Out << "define ";
|
||||
|
||||
switch (F->getLinkage()) {
|
||||
case GlobalValue::InternalLinkage: Out << "internal "; break;
|
||||
case GlobalValue::LinkOnceLinkage: Out << "linkonce "; break;
|
||||
@ -1021,7 +1018,6 @@ void AssemblyWriter::printFunction(const Function *F) {
|
||||
case GlobalValue::HiddenVisibility: Out << "hidden "; break;
|
||||
case GlobalValue::ProtectedVisibility: Out << "protected "; break;
|
||||
}
|
||||
}
|
||||
|
||||
// Print the calling convention.
|
||||
switch (F->getCallingConv()) {
|
||||
|
Loading…
Reference in New Issue
Block a user