mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoid
confusion with external linkage types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33663 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -72,11 +72,11 @@ bool PruneEH::runOnSCC(const std::vector<CallGraphNode *> &SCC) {
|
||||
for (unsigned i = 0, e = SCC.size();
|
||||
(!SCCMightUnwind || !SCCMightReturn) && i != e; ++i) {
|
||||
Function *F = SCC[i]->getFunction();
|
||||
if (F == 0 || (F->isExternal() && !F->getIntrinsicID())) {
|
||||
if (F == 0 || (F->isDeclaration() && !F->getIntrinsicID())) {
|
||||
SCCMightUnwind = true;
|
||||
SCCMightReturn = true;
|
||||
} else {
|
||||
if (F->isExternal())
|
||||
if (F->isDeclaration())
|
||||
SCCMightReturn = true;
|
||||
|
||||
// Check to see if this function performs an unwind or calls an
|
||||
|
Reference in New Issue
Block a user