summaryrefslogtreecommitdiff
path: root/omegalib/code_gen/src/CG_roseRepr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'omegalib/code_gen/src/CG_roseRepr.cc')
-rw-r--r--omegalib/code_gen/src/CG_roseRepr.cc51
1 files changed, 0 insertions, 51 deletions
diff --git a/omegalib/code_gen/src/CG_roseRepr.cc b/omegalib/code_gen/src/CG_roseRepr.cc
index 99cf973..9265ab0 100644
--- a/omegalib/code_gen/src/CG_roseRepr.cc
+++ b/omegalib/code_gen/src/CG_roseRepr.cc
@@ -122,55 +122,4 @@ void CG_roseRepr::DumpFileHelper(SgNode* node, FILE *fp) const{
}
}
-/*void CG_roseRepr::DumpToFile(FILE *fp) const {
-// std::string x;
-SgNode* tnl = tnl_;
-SgExpression* op = op_ ;
-
-if(tnl!= NULL){
- std::string x = tnl->unparseToString();
- fprintf(fp, "%s", x.c_str());
-
-}
-else if(op != NULL){
- std::string x = isSgNode(op)->unparseToString();
- fprintf(fp, "%s", x.c_str());
-
-
-
-}
-}
-*/
-/*
-SgNode* CG_roseRepr::copyAST ( SgNode* node )
-{
-
-// This is a better implementation using a derived class from SgCopyHelp to control the
-// copying process (skipping the copy of any function definition). This is a variable
-// declaration with an explicitly declared class type.
-class RestrictedCopyType : public SgCopyHelp
- {
- // DQ (9/26/2005): This class demonstrates the use of the copy mechanism
- // within Sage III (originally designed and implemented by Qing Yi).
- // One problem with it is that there is no context information permitted.
-
- public:
- virtual SgNode *copyAst(const SgNode *n)
- {
- // This is the simpliest possible version of a deep copy SgCopyHelp::copyAst() member function.
- SgNode *returnValue = n->copy(*this);
-
- return returnValue;
- }
- } restrictedCopyType;
-
-
-
-
-// This triggers a bug with test2005_152.C (the unparsed code fails for g++ 4.1.2, but not 3.5.6)
-SgNode* copyOfNode = node->copy(restrictedCopyType);
-return copyOfNode;
-
-}
-*/
} // namespace