From f877d4b118a71e8bd27a8ff1d450ba84040815c9 Mon Sep 17 00:00:00 2001 From: "Andrew M. B. Boktor" Date: Thu, 14 Jun 2012 11:20:28 -0800 Subject: Using std::string instead of char* [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13092] --- cuobjdump_to_ptxplus/ptx_parser.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cuobjdump_to_ptxplus/ptx_parser.h') 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); -- cgit v1.3