mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Fix some failures in targets on available_externally functions,
this fixes a crash on CodeGen/Generic/externally_available.ll on ppc hosts. Thanks to Nicholas L for pointing this out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69333 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -93,6 +93,12 @@ char MSILWriter::ID = 0;
|
||||
|
||||
bool MSILWriter::runOnFunction(Function &F) {
|
||||
if (F.isDeclaration()) return false;
|
||||
|
||||
// Do not codegen any 'available_externally' functions at all, they have
|
||||
// definitions outside the translation unit.
|
||||
if (F.hasAvailableExternallyLinkage())
|
||||
return false;
|
||||
|
||||
LInfo = &getAnalysis<LoopInfo>();
|
||||
printFunction(F);
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user