[Compbench-devel] CompBenchmarks++/libcompbenchmarks/Compiler Compiler.cpp, 1.3, 1.4 Compiler.h, 1.
Brought to you by:
xfred
From: Frederic T. <xf...@us...> - 2007-02-19 18:43:43
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv23989 Modified Files: Compiler.cpp Compiler.h Log Message: std::string used to avoid memory hits outside data block. Index: Compiler.h =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler/Compiler.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Compiler.h 15 Feb 2007 18:58:05 -0000 1.4 --- Compiler.h 19 Feb 2007 18:43:38 -0000 1.5 *************** *** 55,59 **** \sa Compiler() */ ! char *compilerBinary; /** Constructor --- 55,59 ---- \sa Compiler() */ ! std::string compilerBinary; /** Constructor *************** *** 61,65 **** \param _compilerBinary absolute or relative path to the compiler program */ Compiler(class System *_system, ! char *_compilerBinary); /** Gets compiler's name --- 61,65 ---- \param _compilerBinary absolute or relative path to the compiler program */ Compiler(class System *_system, ! std::string _compilerBinary); /** Gets compiler's name *************** *** 95,99 **** /** Gets compiler's language. \return C or C++. */ ! virtual char *Language(void) = 0; /** Virtual destructor */ virtual ~Compiler(); --- 95,99 ---- /** Gets compiler's language. \return C or C++. */ ! virtual std::string Language(void) = 0; /** Virtual destructor */ virtual ~Compiler(); *************** *** 118,122 **** * \param compilerBinary Absolute or relative name of the compiler program */ ! Compiler *select(char *compilerBinary); /** Virtual destructor */ --- 118,122 ---- * \param compilerBinary Absolute or relative name of the compiler program */ ! Compiler *select(std::string compilerBinary); /** Virtual destructor */ Index: Compiler.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler/Compiler.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Compiler.cpp 15 Feb 2007 18:58:05 -0000 1.3 --- Compiler.cpp 19 Feb 2007 18:43:38 -0000 1.4 *************** *** 17,22 **** using namespace CBM; ! Compiler::Compiler(System *_system, ! char *_compilerBinary) { system=_system; --- 17,22 ---- using namespace CBM; ! Compiler::Compiler(System *_system, ! std::string _compilerBinary) { system=_system; *************** *** 68,72 **** } ! Compiler *CompilerSelector::select(char *compilerBinary) { std::string cmd; --- 68,72 ---- } ! Compiler *CompilerSelector::select(std::string compilerBinary) { std::string cmd; |