mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-30 23:21:04 +00:00
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:
parent
6402565d2d
commit
3de9cb6125
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user