[llvm-dev] StringRef Iterator Variable Display
David Blaikie via llvm-dev
llvm-dev at lists.llvm.org
Tue Apr 23 13:15:10 PDT 2019
Does the code compile and execute? If so, I guess the strings in your
set are empty/zero-length.
On Tue, Apr 23, 2019 at 12:41 PM hameeza ahmed via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>
> Hello,
> I want to display the variable names in stringref iterator. But it is not displayed using following code.
>
>
> for (set<StringRef>::iterator sit = L.begin(); sit != L.end(); sit++) {
> errs() << *sit << " ";
> }
>
> How to do this?
> Please help..
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
More information about the llvm-dev
mailing list