diff options
Diffstat (limited to 'source/opt/instrument_pass.h')
-rw-r--r-- | source/opt/instrument_pass.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/opt/instrument_pass.h b/source/opt/instrument_pass.h index 90c1dd47..215b0263 100644 --- a/source/opt/instrument_pass.h +++ b/source/opt/instrument_pass.h @@ -224,6 +224,19 @@ class InstrumentPass : public Pass { // Return new label. std::unique_ptr<Instruction> NewLabel(uint32_t label_id); + // Set the name function parameter or local variable + std::unique_ptr<Instruction> NewName(uint32_t id, + const std::string& name_str); + + // Set the name for a function or global variable, names will be + // prefixed to identify which instrumentation pass generated them. + std::unique_ptr<Instruction> NewGlobalName(uint32_t id, + const std::string& name_str); + + // Set the name for a structure member + std::unique_ptr<Instruction> NewMemberName(uint32_t id, uint32_t member_index, + const std::string& name_str); + // Return id for 32-bit unsigned type uint32_t GetUintId(); |