Finegrainify namespacification
authorChris Lattner <sabre@nondot.org>
Wed, 14 Jul 2004 06:39:48 +0000 (06:39 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 14 Jul 2004 06:39:48 +0000 (06:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14808 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AsmParser/llvmAsmParser.y

index 4724a0f1030f2b456b7712954c2f91adbecfce2d..ea06f875ad08bfb3e2f44ded3ca7ce16ed8ba1ae 100644 (file)
@@ -31,9 +31,11 @@ int yylex();                       // declaration" of xxx warnings.
 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 @@ static PATypeHolder HandleUpRefs(const Type *ty) {
 //            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 @@ Module *RunVMAsmParser(const std::string &Filename, FILE *F) {
   return Result;
 }
 
-} // End llvm namespace
-
-using namespace llvm;
-
 %}
 
 %union {