search for: lexical_cast

Displaying 3 results from an estimated 3 matches for "lexical_cast".

2005 Apr 15
2
[LLVMdev] MachineInstr: external symbols problem
Hello, I just wrote the code like this: BuildMI(BB, NM::CALL, 1) .addExternalSymbol(("_lvksda_control_marker_" + lexical_cast<string>(bb)).c_str()); and got some unexpected string in the assembler output. The problem is that when external symbol is added to MachineInstruction, MachineOperand is created with the char* argument, but the argument is not copied, it's just stored in MachineOperand::symbolName. So...
2005 Apr 15
0
[LLVMdev] MachineInstr: external symbols problem
On Fri, 15 Apr 2005, Vladimir Prus wrote: > Hello, > I just wrote the code like this: > > BuildMI(BB, NM::CALL, 1) > .addExternalSymbol(("_lvksda_control_marker_" > + lexical_cast<string>(bb)).c_str()); > > and got some unexpected string in the assembler output. The problem is > that when external symbol is added to MachineInstruction, MachineOperand > is created with the char* argument, but the argument is not copied, it's > just stored in Machin...
2005 Apr 15
3
[LLVMdev] MachineInstr: external symbols problem
...e: > On Fri, 15 Apr 2005, Vladimir Prus wrote: > > Hello, > > I just wrote the code like this: > > > > BuildMI(BB, NM::CALL, 1) > > .addExternalSymbol(("_lvksda_control_marker_" > > + > > lexical_cast<string>(bb)).c_str()); > > > > and got some unexpected string in the assembler output. The problem is > > that when external symbol is added to MachineInstruction, MachineOperand > > is created with the char* argument, but the argument is not copied, it's > >...