mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +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:
@@ -44,12 +44,12 @@ GetAllUndefinedSymbols(Module *M, std::set<std::string> &UndefinedSymbols) {
|
||||
// This is needed for programs where the main function is defined in an
|
||||
// archive, such f2c'd programs.
|
||||
Function *Main = M->getMainFunction();
|
||||
if (Main == 0 || Main->isExternal())
|
||||
if (Main == 0 || Main->isDeclaration())
|
||||
UndefinedSymbols.insert("main");
|
||||
|
||||
for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I)
|
||||
if (I->hasName()) {
|
||||
if (I->isExternal())
|
||||
if (I->isDeclaration())
|
||||
UndefinedSymbols.insert(I->getName());
|
||||
else if (!I->hasInternalLinkage()) {
|
||||
assert(!I->hasDLLImportLinkage()
|
||||
@@ -60,7 +60,7 @@ GetAllUndefinedSymbols(Module *M, std::set<std::string> &UndefinedSymbols) {
|
||||
for (Module::global_iterator I = M->global_begin(), E = M->global_end();
|
||||
I != E; ++I)
|
||||
if (I->hasName()) {
|
||||
if (I->isExternal())
|
||||
if (I->isDeclaration())
|
||||
UndefinedSymbols.insert(I->getName());
|
||||
else if (!I->hasInternalLinkage()) {
|
||||
assert(!I->hasDLLImportLinkage()
|
||||
|
||||
Reference in New Issue
Block a user