diff options
Diffstat (limited to 'source/opt/fix_storage_class.h')
-rw-r--r-- | source/opt/fix_storage_class.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/opt/fix_storage_class.h b/source/opt/fix_storage_class.h index 6c67acd3..e72e864a 100644 --- a/source/opt/fix_storage_class.h +++ b/source/opt/fix_storage_class.h @@ -48,7 +48,7 @@ class FixStorageClass : public Pass { // appropriate, and propagates the change to the users of |inst| as well. // Returns true of any changes were made. // |seen| is used to track OpPhi instructions that should not be processed. - bool PropagateStorageClass(Instruction* inst, spv::StorageClass storage_class, + bool PropagateStorageClass(Instruction* inst, SpvStorageClass storage_class, std::set<uint32_t>* seen); // Changes the storage class of the result of |inst| to |storage_class|. @@ -58,13 +58,13 @@ class FixStorageClass : public Pass { // |seen| is used to track OpPhi instructions that should not be processed by // |PropagateStorageClass| void FixInstructionStorageClass(Instruction* inst, - spv::StorageClass storage_class, + SpvStorageClass storage_class, std::set<uint32_t>* seen); // Changes the storage class of the result of |inst| to |storage_class|. The // result type of |inst| must be a pointer. void ChangeResultStorageClass(Instruction* inst, - spv::StorageClass storage_class) const; + SpvStorageClass storage_class) const; // Returns true if the result type of |inst| is a pointer. bool IsPointerResultType(Instruction* inst); @@ -72,7 +72,7 @@ class FixStorageClass : public Pass { // Returns true if the result of |inst| is a pointer to storage class // |storage_class|. bool IsPointerToStorageClass(Instruction* inst, - spv::StorageClass storage_class); + SpvStorageClass storage_class); // Change |inst| to match that operand |op_idx| now has type |type_id|, and // adjust any uses of |inst| accordingly. Returns true if the code changed. |