diff options
| author | Andrew M. B. Boktor <[email protected]> | 2012-06-14 11:20:28 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:47:32 -0700 |
| commit | f877d4b118a71e8bd27a8ff1d450ba84040815c9 (patch) | |
| tree | 9e7857c2761c4563e061eab8f367f317e0021ff2 /cuobjdump_to_ptxplus/cuobjdumpInst.h | |
| parent | 3fff6a4b7c3af88c9e9a2faafd3ace9e805531d2 (diff) | |
Using std::string instead of char*
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13092]
Diffstat (limited to 'cuobjdump_to_ptxplus/cuobjdumpInst.h')
| -rw-r--r-- | cuobjdump_to_ptxplus/cuobjdumpInst.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cuobjdump_to_ptxplus/cuobjdumpInst.h b/cuobjdump_to_ptxplus/cuobjdumpInst.h index d8f75ab..3a09e64 100644 --- a/cuobjdump_to_ptxplus/cuobjdumpInst.h +++ b/cuobjdump_to_ptxplus/cuobjdumpInst.h @@ -41,9 +41,9 @@ class cuobjdumpInst { protected: //instruction data - const char* m_label; //instruction label + std::string m_label; //instruction label std::list<std::string>* m_predicate; //instruction predicate - const char* m_base; //instruction mnemonic + std::string m_base; //instruction mnemonic std::list<std::string>* m_baseModifiers; //base modifiers std::list<std::string>* m_typeModifiers; //operand types std::list<std::string>* m_operands; //operands @@ -55,7 +55,7 @@ public: ~cuobjdumpInst(); //accessors - const char* getBase(); + const std::string getBase(); std::list<std::string>* getTypeModifiers(); //Mutators @@ -73,7 +73,7 @@ public: void printCuobjdumpPredicate(); void printCuobjdumpTypeModifiers(); void printCuobjdumpBaseModifiers(); - void printCuobjdumpOperand(std::string currentPiece, std::string operandDelimiter, const char* base); + void printCuobjdumpOperand(std::string currentPiece, std::string operandDelimiter, std::string base); void printCuobjdumpOperandlohi(std::string op); void printCuobjdumpOperands(); |
