tint: Fix TINT_SYMBOL_STORE_DEBUG_NAME

Change-Id: Id585354c5e3630d6921d74b58a6d602689be48ea
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/96901
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Antonio Maiorano 2022-07-21 22:06:05 +00:00 committed by Dawn LUCI CQ
parent 1e98a9ba4a
commit 6863be0487
2 changed files with 3 additions and 3 deletions

View File

@ -23,8 +23,8 @@ Symbol::Symbol() = default;
Symbol::Symbol(uint32_t val, tint::ProgramID program_id) : val_(val), program_id_(program_id) {} Symbol::Symbol(uint32_t val, tint::ProgramID program_id) : val_(val), program_id_(program_id) {}
#if TINT_SYMBOL_STORE_DEBUG_NAME #if TINT_SYMBOL_STORE_DEBUG_NAME
Symbol::Symbol(uint32_t val, tint::ProgramID pid, NodeID nid, std::string debug_name) Symbol::Symbol(uint32_t val, tint::ProgramID pid, std::string debug_name)
: val_(val), program_id_(program_id), debug_name_(std::move(debug_name)) {} : val_(val), program_id_(pid), debug_name_(std::move(debug_name)) {}
#endif #endif
Symbol::Symbol(const Symbol& o) = default; Symbol::Symbol(const Symbol& o) = default;

View File

@ -43,7 +43,7 @@ class Symbol {
/// @param val the symbol value /// @param val the symbol value
/// @param program_id the identifier of the program that owns this Symbol /// @param program_id the identifier of the program that owns this Symbol
/// @param debug_name name of symbols used only for debugging /// @param debug_name name of symbols used only for debugging
Symbol(uint32_t val, tint::ProgramID pid, NodeID nid, std::string debug_name); Symbol(uint32_t val, tint::ProgramID pid, std::string debug_name);
#endif #endif
/// Copy constructor /// Copy constructor
/// @param o the symbol to copy /// @param o the symbol to copy