浏览代码

[spirv] Handle Spec constants in SpirvConstant class

Ehsan 6 年之前
父节点
当前提交
9b1f126ffb
共有 1 个文件被更改,包括 0 次插入8 次删除
  1. 0 8
      tools/clang/include/clang/SPIRV/SpirvInstruction.h

+ 0 - 8
tools/clang/include/clang/SPIRV/SpirvInstruction.h

@@ -151,12 +151,6 @@ public:
   void setRValue(bool rvalue = true) { isRValue_ = rvalue; }
   bool isRValue() const { return isRValue_; }
 
-  void setConstant() { isConstant_ = true; }
-  bool isConstant() const { return isConstant_; }
-
-  void setSpecConstant() { isSpecConstant_ = true; }
-  bool isSpecConstant() const { return isSpecConstant_; }
-
   void setRelaxedPrecision() { isRelaxedPrecision_ = true; }
   bool isRelaxedPrecision() const { return isRelaxedPrecision_; }
 
@@ -192,8 +186,6 @@ protected:
 
   spv::StorageClass storageClass;
   bool isRValue_;
-  bool isConstant_;
-  bool isSpecConstant_;
   bool isRelaxedPrecision_;
   bool isNonUniform_;
 };