aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Assembly/Parser.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-23 02:35:57 +0000
committerChris Lattner <sabre@nondot.org>2001-07-23 02:35:57 +0000
commit8f367bd3c0f56b7b318c46cee04f77735f617777 (patch)
treeef00b00e2465f9168bbbd83fd2ebef8fa857146f /include/llvm/Assembly/Parser.h
parenta28504313d4c3fe87173a71b511dd4c8e25c3312 (diff)
downloadexternal_llvm-8f367bd3c0f56b7b318c46cee04f77735f617777.zip
external_llvm-8f367bd3c0f56b7b318c46cee04f77735f617777.tar.gz
external_llvm-8f367bd3c0f56b7b318c46cee04f77735f617777.tar.bz2
Large scale changes to implement new command line argument facility
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Assembly/Parser.h')
-rw-r--r--include/llvm/Assembly/Parser.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/llvm/Assembly/Parser.h b/include/llvm/Assembly/Parser.h
index 5ac6ec2..4dc2bfb 100644
--- a/include/llvm/Assembly/Parser.h
+++ b/include/llvm/Assembly/Parser.h
@@ -10,14 +10,13 @@
#include <string>
class Module;
-class ToolCommandLine;
class ParseException;
// The useful interface defined by this file... Parse an ascii file, and return
// the internal representation in a nice slice'n'dice'able representation.
//
-Module *ParseAssemblyFile(const ToolCommandLine &Opts) throw (ParseException);
+Module *ParseAssemblyFile(const string &Filename) throw (ParseException);
//===------------------------------------------------------------------------===
// Helper Classes
@@ -28,7 +27,7 @@ Module *ParseAssemblyFile(const ToolCommandLine &Opts) throw (ParseException);
//
class ParseException {
public:
- ParseException(const ToolCommandLine &Opts, const string &message,
+ ParseException(const string &filename, const string &message,
int LineNo = -1, int ColNo = -1);
ParseException(const ParseException &E);
@@ -42,8 +41,8 @@ public:
return Message;
}
- inline const ToolCommandLine &getOptions() const {
- return Opts; // Get the options obj used to parse.
+ inline const string &getFilename() const {
+ return Filename;
}
// getErrorLocation - Return the line and column number of the error in the
@@ -56,7 +55,7 @@ public:
}
private :
- const ToolCommandLine &Opts;
+ string Filename;
string Message;
int LineNo, ColumnNo; // -1 if not relevant