summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/ParserInternals.h
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-11-11 22:41:34 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-11-11 22:41:34 +0000
commit960707c335b85fa0df0bff6400fd4e5f19ac0df4 (patch)
treefcd6bd0a802eff2ba6d9bcfef369241d5b79d06a /llvm/lib/AsmParser/ParserInternals.h
parentda3f675edd0b0ffa480c1bec97a2a701d31e4ca8 (diff)
downloadbcm5719-llvm-960707c335b85fa0df0bff6400fd4e5f19ac0df4.tar.gz
bcm5719-llvm-960707c335b85fa0df0bff6400fd4e5f19ac0df4.zip
Put all LLVM code into the llvm namespace, as per bug 109.
llvm-svn: 9903
Diffstat (limited to 'llvm/lib/AsmParser/ParserInternals.h')
-rw-r--r--llvm/lib/AsmParser/ParserInternals.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/llvm/lib/AsmParser/ParserInternals.h b/llvm/lib/AsmParser/ParserInternals.h
index c7837959e61..c18434d1f07 100644
--- a/llvm/lib/AsmParser/ParserInternals.h
+++ b/llvm/lib/AsmParser/ParserInternals.h
@@ -22,18 +22,22 @@
#include "llvm/Assembly/Parser.h"
#include "Support/StringExtras.h"
-class Module;
-
// Global variables exported from the lexer...
extern std::FILE *llvmAsmin;
extern int llvmAsmlineno;
// Globals exported by the parser...
+extern char* llvmAsmtext;
+extern int llvmAsmleng;
+
+namespace llvm {
+
+// Globals exported by the parser...
extern std::string CurFilename;
+
+class Module;
Module *RunVMAsmParser(const std::string &Filename, FILE *F);
-extern char* llvmAsmtext;
-extern int llvmAsmleng;
// UnEscapeLexed - Run through the specified buffer and change \xx codes to the
// appropriate character. If AllowNull is set to false, a \00 value will cause
@@ -209,4 +213,6 @@ static inline int getLineNumFromPlaceHolder(const Value *Val) {
}
}
+} // End llvm namespace
+
#endif
OpenPOWER on IntegriCloud