[Compbench-devel] CompBenchmarks++/libcompbenchmarks/Compiler Compiler.cpp, 1.1, 1.2 Compiler.h, 1.
Brought to you by:
xfred
From: Frederic T. <xf...@us...> - 2007-02-06 19:25:41
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv16218 Modified Files: Compiler.cpp Compiler.h Log Message: Changes in method names. Index: Compiler.h =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler/Compiler.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Compiler.h 22 Jan 2007 18:24:21 -0000 1.1 --- Compiler.h 6 Feb 2007 19:25:27 -0000 1.2 *************** *** 58,66 **** virtual std::string getCompilerVersion(void) = 0; public: - /** Display compiler's information. - * Format is strict. This output is used by compbenchmark-config. - */ - virtual void display(void); - /** Internal compiler id. \return std::string like 'gcc' or 'g++'. --- 58,61 ---- *************** *** 70,79 **** \sa getCompilerName() \return The compiler name. */ ! virtual std::string compilerName(void); /** Gets compiler's version. Do not overload. \sa getCompilerVersion() \return The compiler version. */ ! virtual std::string compilerVersion(void); /** Gets compiler's program (as specified in constructor). --- 65,74 ---- \sa getCompilerName() \return The compiler name. */ ! virtual std::string Name(void); /** Gets compiler's version. Do not overload. \sa getCompilerVersion() \return The compiler version. */ ! virtual std::string Version(void); /** Gets compiler's program (as specified in constructor). Index: Compiler.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler/Compiler.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Compiler.cpp 22 Jan 2007 18:24:21 -0000 1.1 --- Compiler.cpp 6 Feb 2007 19:25:27 -0000 1.2 *************** *** 23,27 **** } ! std::string Compiler::compilerName(void) { if (cacheCompilerName!="") --- 23,27 ---- } ! std::string Compiler::Name(void) { if (cacheCompilerName!="") *************** *** 33,37 **** } ! std::string Compiler::compilerVersion(void) { if (cacheCompilerVersion!="") --- 33,37 ---- } ! std::string Compiler::Version(void) { if (cacheCompilerVersion!="") *************** *** 48,60 **** } - void Compiler::display(void) - { - std::cout << "compiler::id=" << compiler() << std::endl - << "compiler::name=" << compilerName() << std::endl - << "compiler::version=" << compilerVersion() << std::endl - << "compiler::language=" << language() << std::endl - << "compiler::binary=" << Binary() << std::endl; - } - Compiler::~Compiler() { --- 48,51 ---- |