On 9 July 2015 at 10:39, Daniel Sanders <Daniel.Sanders at imgtec.com> wrote:> TM.createX(llvm::TargetTuple(llvm::Triple(TripleStr)), ...)Could you have a constructor for TargetTuple(string) to build a triple on its own? --renato
I currently plan to use TargetTuple(string) for parsing serialized TargetTuples.> -----Original Message----- > From: Renato Golin [mailto:renato.golin at linaro.org] > Sent: 09 July 2015 11:15 > To: Daniel Sanders > Cc: Vedant Kumar; llvmdev at cs.uiuc.edu > Subject: Re: [LLVMdev] The Trouble with Triples > > On 9 July 2015 at 10:39, Daniel Sanders <Daniel.Sanders at imgtec.com> wrote: > > TM.createX(llvm::TargetTuple(llvm::Triple(TripleStr)), ...) > > Could you have a constructor for TargetTuple(string) to build a triple > on its own? > > --renato
On 9 July 2015 at 11:26, Daniel Sanders <Daniel.Sanders at imgtec.com> wrote:> I currently plan to use TargetTuple(string) for parsing serialized TargetTuples.Right. A temporary solution would be a static method TargetTuple::fromTripleString(string), that we remove once the triple is replaced. cheers, --renato