From a937a4b354b60999a011970d054cd6c478be130d Mon Sep 17 00:00:00 2001 From: Jimmy Kwa Date: Mon, 15 Nov 2010 13:10:19 -0800 Subject: Cleaned up decuda_to_ptxplus code to remove compiler warnings [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 8119] --- decuda_to_ptxplus/decudaInstList.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decuda_to_ptxplus/decudaInstList.cc') diff --git a/decuda_to_ptxplus/decudaInstList.cc b/decuda_to_ptxplus/decudaInstList.cc index 4605e64..9ac6f43 100644 --- a/decuda_to_ptxplus/decudaInstList.cc +++ b/decuda_to_ptxplus/decudaInstList.cc @@ -301,7 +301,7 @@ void decudaInstList::addRegister(std::string reg, bool lo) currentPiece = typeModifiers->getListStart(); for(int i=0; (igetSize())&&(currentPiece!=NULL); i++) { - char* modString = currentPiece->stringText; + const char* modString = currentPiece->stringText; if( strcmp(modString, ".b64")==0 ) vectorFlag = 64; @@ -451,7 +451,7 @@ void decudaInstList::addConstMemoryValue(std::string constMemoryValue) } // set type of constant memory -void decudaInstList::setConstMemoryType(char* type) +void decudaInstList::setConstMemoryType(const char* type) { m_constMemoryList.back().type = type; } -- cgit v1.3