diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-14 06:39:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-14 06:39:48 +0000 |
commit | 8642763f11ff563408f3e888a543aeef1eae24f4 (patch) | |
tree | 171b45a0ff2b44cfe80c930b2dfe49e02e61e96a | |
parent | 2e2ed2995a5d8c822fc4d1d83d7a374dc382ee97 (diff) |
Finegrainify namespacification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14808 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 4724a0f103..ea06f875ad 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -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 { |