diff options
Diffstat (limited to '3rdparty/bgfx/3rdparty/spirv-tools/source/val/validate_debug.cpp')
-rw-r--r-- | 3rdparty/bgfx/3rdparty/spirv-tools/source/val/validate_debug.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/3rdparty/bgfx/3rdparty/spirv-tools/source/val/validate_debug.cpp b/3rdparty/bgfx/3rdparty/spirv-tools/source/val/validate_debug.cpp index ef537ea0276..7ab597a11a1 100644 --- a/3rdparty/bgfx/3rdparty/spirv-tools/source/val/validate_debug.cpp +++ b/3rdparty/bgfx/3rdparty/spirv-tools/source/val/validate_debug.cpp @@ -12,9 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "source/val/validate.h" + +#include "source/opcode.h" #include "source/spirv_target_env.h" #include "source/val/instruction.h" -#include "source/val/validate.h" #include "source/val/validation_state.h" namespace spvtools { @@ -24,7 +26,7 @@ namespace { spv_result_t ValidateMemberName(ValidationState_t& _, const Instruction* inst) { const auto type_id = inst->GetOperandAs<uint32_t>(0); const auto type = _.FindDef(type_id); - if (!type || spv::Op::OpTypeStruct != type->opcode()) { + if (!type || SpvOpTypeStruct != type->opcode()) { return _.diag(SPV_ERROR_INVALID_ID, inst) << "OpMemberName Type <id> " << _.getIdName(type_id) << " is not a struct type."; @@ -43,7 +45,7 @@ spv_result_t ValidateMemberName(ValidationState_t& _, const Instruction* inst) { spv_result_t ValidateLine(ValidationState_t& _, const Instruction* inst) { const auto file_id = inst->GetOperandAs<uint32_t>(0); const auto file = _.FindDef(file_id); - if (!file || spv::Op::OpString != file->opcode()) { + if (!file || SpvOpString != file->opcode()) { return _.diag(SPV_ERROR_INVALID_ID, inst) << "OpLine Target <id> " << _.getIdName(file_id) << " is not an OpString."; @@ -55,10 +57,10 @@ spv_result_t ValidateLine(ValidationState_t& _, const Instruction* inst) { spv_result_t DebugPass(ValidationState_t& _, const Instruction* inst) { switch (inst->opcode()) { - case spv::Op::OpMemberName: + case SpvOpMemberName: if (auto error = ValidateMemberName(_, inst)) return error; break; - case spv::Op::OpLine: + case SpvOpLine: if (auto error = ValidateLine(_, inst)) return error; break; default: |