forked from OSchip/llvm-project
parent
960e7663f3
commit
72c0b1cc1b
|
@ -24,14 +24,14 @@ bool FunctionImportGlobalProcessing::doImportAsDefinition(
|
||||||
const GlobalValue *SGV, SetVector<GlobalValue *> *GlobalsToImport) {
|
const GlobalValue *SGV, SetVector<GlobalValue *> *GlobalsToImport) {
|
||||||
|
|
||||||
// Only import the globals requested for importing.
|
// Only import the globals requested for importing.
|
||||||
if (GlobalsToImport->count(const_cast<GlobalValue *>(SGV)))
|
if (!GlobalsToImport->count(const_cast<GlobalValue *>(SGV)))
|
||||||
return true;
|
return false;
|
||||||
|
|
||||||
assert(!isa<GlobalAlias>(SGV) &&
|
assert(!isa<GlobalAlias>(SGV) &&
|
||||||
"Unexpected global alias in the import list.");
|
"Unexpected global alias in the import list.");
|
||||||
|
|
||||||
// Otherwise no.
|
// Otherwise yes.
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FunctionImportGlobalProcessing::doImportAsDefinition(
|
bool FunctionImportGlobalProcessing::doImportAsDefinition(
|
||||||
|
|
Loading…
Reference in New Issue