p4c
p4c copied to clipboard
Add a getStringLiteral utility function to irutils.
I have been doing this a lot lately, so might as well contribute a utility function. Maybe all of these "get" functions should be static class members?
Maybe all of these "get" functions should be static class members?
Do you mean e.g. IR::StringLiteral::get
?
Maybe all of these "get" functions should be static class members?
Do you mean e.g.
IR::StringLiteral::get
?
Yes, something in that form.
Maybe all of these "get" functions should be static class members?
Do you mean e.g.
IR::StringLiteral::get
?Yes, something in that form.
OK, I think that would make more sense than the freestanding functions.
Maybe all of these "get" functions should be static class members?
Do you mean e.g.
IR::StringLiteral::get
?Yes, something in that form.
OK, I think that would make more sense than the freestanding functions.
Alright, gave this a shot. There is probably more utils we could add.