Help with creating a simple switch stmt in Gimple

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Does anyone have an example of how to create a simple switch statement in Gimple? I'm really confused by the CASE_LABEL.
I know that to create a switch one can call gimple_build_switch() but then it requires one or more case labels (so far so good). But there seem to be no function that can create a case label. We have gimple_build_label() which may be the one however again i'm confused by the fact that this function takes an existing? label. Why would someone want to create a label for an existing label.
Any pointers appreciated.
thanks
jeff



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux