[llvm-commits] [llvm] r165946 - in /llvm/trunk: include/llvm/MC/MCParser/MCAsmParser.h lib/MC/MCParser/AsmParser.cpp
Chad Rosier
mcrosier at apple.com
Mon Oct 15 14:58:45 PDT 2012
On Oct 15, 2012, at 2:54 PM, Eric Christopher <echristo at gmail.com> wrote:
>> + // Free any parsed operands. If parsing ms-style inline assembly it is the
>> + // responsibility of the caller (i.e., clang) to free the parsed operands.
>> + if (!ParsingInlineAsm)
>> + freeParsedOperands();
>>
If we're not parsing ms-style inline assembly, then we're done matching the instruction and we no longer need the MCAsmParsedOperands; free them now. However, if we're parsing ms-style inline assembly then we need the MCAsmParsedOperands to stick around while the front-end builds the clobbers, inputs, outputs, etc. Once the front-end is done iterating over the MCAsmParsedOperands it must call freeParsedOperands() to free the operands. In the near future I plan on reworking the interface to the front-end, such that this call won't be necessary.
Chad
> This comment is a little unclear. What do you mean to happen in each case?
>
> -eric
More information about the llvm-commits
mailing list