aboutsummaryrefslogtreecommitdiff
path: root/decuda_to_ptxplus/decudaInst.h
diff options
context:
space:
mode:
authorJimmy Kwa <[email protected]>2010-11-15 13:10:19 -0800
committerJimmy Kwa <[email protected]>2010-11-15 13:10:19 -0800
commita937a4b354b60999a011970d054cd6c478be130d (patch)
tree7e020bf8abe1e6e99316984da0be924396eec53e /decuda_to_ptxplus/decudaInst.h
parentbf981f1c32f6248b5e3f0f5b3585fcb0e1daca61 (diff)
Cleaned up decuda_to_ptxplus code to remove compiler warnings
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 8119]
Diffstat (limited to 'decuda_to_ptxplus/decudaInst.h')
-rw-r--r--decuda_to_ptxplus/decudaInst.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/decuda_to_ptxplus/decudaInst.h b/decuda_to_ptxplus/decudaInst.h
index a1f0a8e..8b73cf1 100644
--- a/decuda_to_ptxplus/decudaInst.h
+++ b/decuda_to_ptxplus/decudaInst.h
@@ -4,11 +4,11 @@
class decudaInst
{
-private:
+protected:
//instruction data
- char* m_label; //instruction label
- char* m_predicate; //instruction predicate
- char* m_base; //instruction mnemonic
+ const char* m_label; //instruction label
+ const char* m_predicate; //instruction predicate
+ const char* m_base; //instruction mnemonic
stringList* m_baseModifiers; //base modifiers
stringList* m_typeModifiers; //operand types
stringList* m_operands; //operands
@@ -34,7 +34,7 @@ public:
decudaInst();
//accessors
- char* getBase();
+ const char* getBase();
stringList* getOperands();
stringList* getBaseModifiers();
stringList* getTypeModifiers();
@@ -45,13 +45,13 @@ public:
bool isEntryStart(); // true if start of an entry
//mutators
- void setBase(char* setBaseValue);
- void addBaseModifier(char* addBaseMod);
- void addTypeModifier(char* addTypeMod);
- void addOperand(char* addOp);
- void setPredicate(char* setPredicateValue);
- void addPredicateModifier(char* addPredicateMod);
- void setLabel(char* setLabelValue);
+ void setBase(const char* setBaseValue);
+ void addBaseModifier(const char* addBaseMod);
+ void addTypeModifier(const char* addTypeMod);
+ void addOperand(const char* addOp);
+ void setPredicate(const char* setPredicateValue);
+ void addPredicateModifier(const char* addPredicateMod);
+ void setLabel(const char* setLabelValue);
void setNextDecudaInst(decudaInst* setDecudaInstValue);