slicc: convert a variable to a pointer address
Review Request #2786 - Created May 11, 2015 and discarded
| Information | |
|---|---|
| Tony Gutierrez | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 10816:aebe70c731a7 --------------------------- slicc: convert a variable to a pointer address Add the getPointer() SLICC function that simply adds an ampersand to the variable so that it can be assigned to pointer.
I need an example why this is required. What behavior is not achievable right now?
LGTM. Sorry to harp on this, but once again, can you add info on this to the wiki?
I agree with Nilay on this one. If there is a reason to have a pointer, then the C++ code should export a pointer type. Brad, it seems you also agree. From your response on review 2790 ( http://reviews.gem5.org/r/2790/ ):
SLICC has been designed not to directly expose pointers to the programmer
So, this patch breaks a solid programming abstraction that already exists in SLICC. Further, if this patch were introduced and people use getPointer, then reverting this change later will be painful. It would be best to fix things the right way here.
Description: |
|
|||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+51) |
