Revert "[ThinLTO] Avoid archive member collisions with old API"

This reverts commit r313488, because it breaks compilation on Android and breaks llvm-lto. 



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313489 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Johan Engelen 2017-09-17 18:11:26 +00:00
parent 6402565d2d
commit 3de9cb6125

View File

@ -535,9 +535,7 @@ static void initTMBuilder(TargetMachineBuilder &TMBuilder,
} // end anonymous namespace
void ThinLTOCodeGenerator::addModule(StringRef Identifier, StringRef Data) {
std::string Id =
(Twine(Identifier) + "_" + std::to_string(Modules.size())).str();
ThinLTOBuffer Buffer(Data, std::move(Id));
ThinLTOBuffer Buffer(Data, Identifier);
LLVMContext Context;
StringRef TripleStr;
ErrorOr<std::string> TripleOrErr = expectedToErrorOrAndEmitErrors(