1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Move CheckForValidSection to the MCAsmParser interface.

Now that it behaves itself in terms of streamer independence (r172450), this
method can be moved to MCAsmParser to be available to all extensions,
overriding, etc.

-- -This line, and those below, will be ignored--

M    lib/MC/MCParser/AsmParser.cpp
M    include/llvm/MC/MCParser/MCAsmParser.h

llvm-svn: 172451
This commit is contained in:
Eli Bendersky 2013-01-14 19:15:01 +00:00
parent abe1a77c03
commit 87b2978a18
2 changed files with 5 additions and 1 deletions

View File

@ -174,6 +174,10 @@ public:
/// on error.
/// @result - False on success.
virtual bool ParseAbsoluteExpression(int64_t &Res) = 0;
/// CheckForValidSection - Ensure that we have a valid section set in the
/// streamer. Otherwise, report and error and switch to .text.
virtual void CheckForValidSection() = 0;
};
/// \brief Create an MCAsmParser instance.

View File

@ -233,10 +233,10 @@ public:
virtual bool MacrosEnabled() {return MacrosEnabledFlag;}
virtual void SetMacrosEnabled(bool flag) {MacrosEnabledFlag = flag;}
virtual void CheckForValidSection();
/// }
private:
void CheckForValidSection();
bool ParseStatement(ParseStatementInfo &Info);
void EatToEndOfLine();