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/ptx_parser.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'decuda_to_ptxplus/ptx_parser.h') diff --git a/decuda_to_ptxplus/ptx_parser.h b/decuda_to_ptxplus/ptx_parser.h index c0b31b8..1c9fc8c 100644 --- a/decuda_to_ptxplus/ptx_parser.h +++ b/decuda_to_ptxplus/ptx_parser.h @@ -61,7 +61,7 @@ void change_memory_addr_space( const char *a ) {} void add_literal_int( int a ) {} void add_literal_float( float a ) {} void add_literal_double( double a ) {} -void func_header_info_int(char*, int) {} +void func_header_info_int(const char*, int) {} void add_extern_spec() {} void add_alignment_spec( int ) {} void add_pragma( const char *a ) {} @@ -88,7 +88,7 @@ bool inTexDirective = false; void add_function_name( const char *headerInput ) { char* headerInfo = (char*) headerInput; - char* compareString = g_headerList->getListEnd().getBase(); + const char* compareString = g_headerList->getListEnd().getBase(); if((strcmp(compareString, ".entry")==0)||(strcmp(compareString, ".func")==0)) { @@ -120,7 +120,7 @@ void add_space_spec( enum _memory_space_t spec, int value ) void add_scalar_type_spec( int headerInput ) { - char* compareString = g_headerList->getListEnd().getBase(); + const char* compareString = g_headerList->getListEnd().getBase(); if( (inEntryDirective && inParamDirective) || inTexDirective) { @@ -244,7 +244,7 @@ void* reset_symtab() return a; } -void func_header(char* headerBase) +void func_header(const char* headerBase) { // If start of an entry @@ -258,9 +258,9 @@ void func_header(char* headerBase) } } -void func_header_info(char* headerInfo) +void func_header_info(const char* headerInfo) { - char* compareString = g_headerList->getListEnd().getBase(); + const char* compareString = g_headerList->getListEnd().getBase(); if(inEntryDirective) { g_headerList->getListEnd().addOperand(headerInfo); -- cgit v1.3