summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-upgrade/ParserInternals.h
blob: 64fad70f714dd93ffbf82063296d0dbb4a7fcd80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//===-- ParserInternals.h - Definitions internal to the parser --*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file was developed by Reid Spencer and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
//  This header file defines the variables that are shared between the lexer,
//  the parser, and the main program.
//
//===----------------------------------------------------------------------===//

#ifndef PARSER_INTERNALS_H
#define PARSER_INTERNALS_H

#include <string>
#include <istream>

// Global variables exported from the lexer...

extern std::string CurFileName;
extern std::string Textin;
extern int Upgradelineno;
extern std::istream* LexInput;


void UpgradeAssembly(const std::string & infile, std::istream& in, std::ostream &out);

// Globals exported by the parser...
extern char* Upgradetext;
extern int   Upgradeleng;

int yyerror(const char *ErrorMsg) ;

#endif
OpenPOWER on IntegriCloud