void LTOModule::addDefinedSymbol(GlobalValue* def, Mangler &mangler,
void LTOModule::addDefinedSymbol(GlobalValue* def, Mangler &mangler,
{
// ignore all llvm.* symbols
if ( strncmp(def->getNameStart(), "llvm.", 5) == 0 )
{
// ignore all llvm.* symbols
if ( strncmp(def->getNameStart(), "llvm.", 5) == 0 )
if ( strncmp(decl->getNameStart(), "llvm.", 5) == 0 )
return;
if ( strncmp(decl->getNameStart(), "llvm.", 5) == 0 )
return;
+ // ignore all aliases
+ if (isa<GlobalAlias>(decl))
+ return;
+
const char* name = mangler.getValueName(decl).c_str();
// we already have the symbol
const char* name = mangler.getValueName(decl).c_str();
// we already have the symbol