aboutsummaryrefslogtreecommitdiff
path: root/decuda_to_ptxplus/ptx_parser.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/ptx_parser.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/ptx_parser.h')
-rw-r--r--decuda_to_ptxplus/ptx_parser.h12
1 files changed, 6 insertions, 6 deletions
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);