mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 18:34:09 +00:00
Process externally visible functions also. Later on code generator will do the right thing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47889 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
98a6e067df
commit
74382c3453
@ -73,8 +73,7 @@ bool SRETPromotion::runOnSCC(const std::vector<CallGraphNode *> &SCC) {
|
||||
bool SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
|
||||
Function *F = CGN->getFunction();
|
||||
|
||||
// Make sure that it is local to this module.
|
||||
if (!F || !F->hasInternalLinkage())
|
||||
if (!F)
|
||||
return false;
|
||||
|
||||
// Make sure that function returns struct.
|
||||
|
Loading…
x
Reference in New Issue
Block a user