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/ptx_parser.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/ptx_parser.h')
| -rw-r--r-- | cuobjdump_to_ptxplus/ptx_parser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cuobjdump_to_ptxplus/ptx_parser.h b/cuobjdump_to_ptxplus/ptx_parser.h index da22f30..c6d7027 100644 --- a/cuobjdump_to_ptxplus/ptx_parser.h +++ b/cuobjdump_to_ptxplus/ptx_parser.h @@ -134,9 +134,9 @@ void add_function_name( const char *headerInput ) { DPRINTF("name=%s", headerInput); char* headerInfo = (char*) headerInput; - const char* compareString = g_headerList->getListEnd().getBase(); + std::string compareString = g_headerList->getListEnd().getBase(); - if((strcmp(compareString, ".entry")==0)||(strcmp(compareString, ".func")==0)) + if((compareString == ".entry")||(compareString == ".func")) { g_headerList->setLastEntryName(headerInfo); g_headerList->getListEnd().addOperand(headerInfo); |
