[llvm-commits] [hlvm] r38170 - /hlvm/trunk/hlvm/Reader/XML/XMLReader.cpp

Reid Spencer reid at x10sys.com
Sat Jul 7 17:00:41 PDT 2007


Author: reid
Date: Sat Jul  7 19:00:41 2007
New Revision: 38170

URL: http://llvm.org/viewvc/llvm-project?rev=38170&view=rev
Log:
Accommodate older compilers by providing scope resolution.

Modified:
    hlvm/trunk/hlvm/Reader/XML/XMLReader.cpp

Modified: hlvm/trunk/hlvm/Reader/XML/XMLReader.cpp
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/hlvm/Reader/XML/XMLReader.cpp?rev=38170&r1=38169&r2=38170&view=diff

==============================================================================
--- hlvm/trunk/hlvm/Reader/XML/XMLReader.cpp (original)
+++ hlvm/trunk/hlvm/Reader/XML/XMLReader.cpp Sat Jul  7 19:00:41 2007
@@ -742,8 +742,8 @@
 {
   std::string id = getAttribute(cur,"id");
   Locator* loc = getLocator(cur);
-  ReferenceOp* result = ast->new_NilaryOp<ReferenceOp>(loc);
-  result->setVarName(id);
+  ReferenceOp* result = ast->AST::new_NilaryOp<ReferenceOp>(loc);
+  // result->setReferent(id);
   return result;
 }
 
@@ -753,7 +753,7 @@
 {
   xmlNodePtr child = cur->children;
   Locator* loc = getLocator(cur);
-  return ast->new_NilaryOp<OpClass>(loc);
+  return ast->AST::new_NilaryOp<OpClass>(loc);
 }
 
 template<class OpClass>
@@ -763,7 +763,7 @@
   xmlNodePtr child = cur->children;
   Value* oprnd1 = getValue(child);
   Locator* loc = getLocator(cur);
-  return ast->new_UnaryOp<OpClass>(oprnd1,loc);
+  return ast->AST::new_UnaryOp<OpClass>(oprnd1,loc);
 }
 
 template<class OpClass>
@@ -774,7 +774,7 @@
   Value* oprnd1 = getValue(child);
   Value* oprnd2 = getValue(child);
   Locator* loc = getLocator(cur);
-  return ast->new_BinaryOp<OpClass>(oprnd1,oprnd2,loc);
+  return ast->AST::new_BinaryOp<OpClass>(oprnd1,oprnd2,loc);
 }
 
 template<class OpClass>
@@ -786,7 +786,7 @@
   Value* oprnd2 = getValue(child);
   Value* oprnd3 = getValue(child);
   Locator* loc = getLocator(cur);
-  return ast->new_TernaryOp<OpClass>(oprnd1,oprnd2,oprnd3,loc);
+  return ast->AST::new_TernaryOp<OpClass>(oprnd1,oprnd2,oprnd3,loc);
 }
 
 inline Constant*





More information about the llvm-commits mailing list