diff --git a/bolt/llvm-flo.cpp b/bolt/llvm-flo.cpp index 641463bacec5..85ac6325ac53 100644 --- a/bolt/llvm-flo.cpp +++ b/bolt/llvm-flo.cpp @@ -410,10 +410,6 @@ static void OptimizeFile(ELFObjectFileBase *File, const DataReader &DR) { unsigned LocalCount = 1; std::string LocalName = (*Name).str() + "/" + FileSymbolName + "/"; - if ((*Name).startswith(BC->AsmInfo->getPrivateGlobalPrefix())) { - LocalName = "PG." + LocalName; - } - while (BC->GlobalSymbols.find(LocalName + std::to_string(LocalCount)) != BC->GlobalSymbols.end()) { ++LocalCount;