Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv19786
Modified Files:
Compiler-Options.cpp Compiler-Options.h
Log Message:
Interface and behaviour changed.
Index: Compiler-Options.h
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler/Compiler-Options.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Compiler-Options.h 22 Jan 2007 18:24:21 -0000 1.1
--- Compiler-Options.h 25 Jan 2007 20:38:15 -0000 1.2
***************
*** 13,18 ****
namespace CBM {
- class CBMCompiler;
-
/** \brief Abstraction layer for handling compilers' options.
*
--- 13,16 ----
***************
*** 30,51 ****
std::string options;
- /** Stores compiler using options. Initialised by constructor.
- * \sa Compiler()
- */
- class Compiler *compiler;
-
protected:
public:
/** Constructor
- \param _compiler Compiler object related to given options
\param _options Options to manage in current object.
*/
! CompilerOptions(class Compiler *_compiler,
! char *_options);
!
! /** Retrives compiler
! \return Compiler instance declared in constructor */
! virtual class Compiler *Compiler(void);
/** Retrives options
--- 28,38 ----
std::string options;
protected:
public:
/** Constructor
\param _options Options to manage in current object.
*/
! CompilerOptions(std::string _options);
/** Retrives options
Index: Compiler-Options.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler/Compiler-Options.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Compiler-Options.cpp 22 Jan 2007 18:24:21 -0000 1.1
--- Compiler-Options.cpp 25 Jan 2007 20:38:15 -0000 1.2
***************
*** 8,27 ****
#include <Compiler/Compiler-Options.h>
- #include <Compiler/Compiler.h>
using namespace CBM;
! CompilerOptions::CompilerOptions(CBM::Compiler *_compiler,
! char *_options)
{
- compiler=_compiler;
options=_options;
}
- Compiler *CompilerOptions::Compiler(void)
- {
- return(compiler);
- }
-
std::string CompilerOptions::Options(void)
{
--- 8,19 ----
#include <Compiler/Compiler-Options.h>
using namespace CBM;
! CompilerOptions::CompilerOptions(std::string _options)
{
options=_options;
}
std::string CompilerOptions::Options(void)
{
|