diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-17 18:58:56 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-17 18:58:56 -0600 |
commit | bdaf6dc251d98fc1c93165fa8579378204b395e1 (patch) | |
tree | ef961130983342c2615a0a84c8f754a017449312 /omegalib/code_gen/src/CG_roseRepr.cc | |
parent | 8ef3af85585446d897ae292476f433fb6db20c0c (diff) | |
download | chill-bdaf6dc251d98fc1c93165fa8579378204b395e1.tar.gz chill-bdaf6dc251d98fc1c93165fa8579378204b395e1.tar.bz2 chill-bdaf6dc251d98fc1c93165fa8579378204b395e1.zip |
chill doc
Diffstat (limited to 'omegalib/code_gen/src/CG_roseRepr.cc')
-rw-r--r-- | omegalib/code_gen/src/CG_roseRepr.cc | 51 |
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 |