search for: thinltobuff

Displaying 4 results from an estimated 4 matches for "thinltobuff".

Did you mean: thinltobuffer
2017 Sep 05
2
[ThinLTO] static library failure with object files with the same name
...t it persists for linking with the system linker on OSX (while manually passing libLTO.dylib to the linker). If I modify lib/LTO/ThinLTOCodeGenerator.cpp to do a poor-man's uniquefying of the buffer identifier: ``` void ThinLTOCodeGenerator::addModule(StringRef Identifier, StringRef Data) { - ThinLTOBuffer Buffer(Data, Identifier.str())); + ThinLTOBuffer Buffer(Data, Identifier.str() + utostr(Data.size())); ``` then the problem is solved. What would be a proper way to fix this issue? Can it be fixed in lib/LTO, or should I not create an (afaict valid) archive containing duplicate object file name...
2017 Sep 07
2
[ThinLTO] static library failure with object files with the same name
...5d4d0c213 100644 --- a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp +++ b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp @@ -535,7 +535,9 @@ static void initTMBuilder(TargetMachineBuilder &TMBuilder, } // end anonymous namespace void ThinLTOCodeGenerator::addModule(StringRef Identifier, StringRef Data) { - ThinLTOBuffer Buffer(Data, Identifier); + std::string Id = + (Twine(Identifier) + "_" + std::to_string(Modules.size())).str(); + ThinLTOBuffer Buffer(Data, std::move(Id)); LLVMContext Context; StringRef TripleStr; ErrorOr<std::string> TripleOrErr = expectedToErrorOrAndEmitErrors...
2017 Sep 11
2
[ThinLTO] static library failure with object files with the same name
...++ b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp >> @@ -535,7 +535,9 @@ static void initTMBuilder(TargetMachineBuilder >> &TMBuilder, >> } // end anonymous namespace >> >> void ThinLTOCodeGenerator::addModule(StringRef Identifier, StringRef >> Data) { >> - ThinLTOBuffer Buffer(Data, Identifier); >> + std::string Id = >> + (Twine(Identifier) + "_" + std::to_string(Modules.size())).str(); >> + ThinLTOBuffer Buffer(Data, std::move(Id)); >> LLVMContext Context; >> StringRef TripleStr; >> ErrorOr<std::s...
2017 Sep 06
3
[ThinLTO] static library failure with object files with the same name
On Wed, Sep 6, 2017 at 1:10 PM, Johan Engelen via llvm-dev <llvm-dev at lists.llvm.org> wrote: > On Tue, Sep 5, 2017 at 11:34 PM, Davide Italiano <dccitaliano at gmail.com> > wrote: >> >> On Tue, Sep 5, 2017 at 2:09 PM, Teresa Johnson <tejohnson at google.com> >> wrote: >> > >> > Hi Johan, >> > >> > Right, per the bug