[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y
Chris Lattner
lattner at cs.uiuc.edu
Tue Jul 13 23:39:58 PDT 2004
Changes in directory llvm/lib/AsmParser:
llvmAsmParser.y updated: 1.180 -> 1.181
---
Log message:
Finegrainify namespacification
---
Diffs of the changes: (+4 -6)
Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.180 llvm/lib/AsmParser/llvmAsmParser.y:1.181
--- llvm/lib/AsmParser/llvmAsmParser.y:1.180 Wed Jul 14 01:28:35 2004
+++ llvm/lib/AsmParser/llvmAsmParser.y Wed Jul 14 01:39:48 2004
@@ -31,9 +31,11 @@
int yyparse();
namespace llvm {
+ std::string CurFilename;
+}
+using namespace llvm;
static Module *ParserResult;
-std::string CurFilename;
// DEBUG_UPREFS - Define this symbol if you want to enable debugging output
// relating to upreferences in the input stream.
@@ -784,7 +786,7 @@
// RunVMAsmParser - Define an interface to this parser
//===----------------------------------------------------------------------===//
//
-Module *RunVMAsmParser(const std::string &Filename, FILE *F) {
+Module *llvm::RunVMAsmParser(const std::string &Filename, FILE *F) {
llvmAsmin = F;
CurFilename = Filename;
llvmAsmlineno = 1; // Reset the current line number...
@@ -864,10 +866,6 @@
return Result;
}
-} // End llvm namespace
-
-using namespace llvm;
-
%}
%union {
More information about the llvm-commits
mailing list