summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCParser
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2013-01-14 19:15:01 +0000
committerEli Bendersky <eliben@google.com>2013-01-14 19:15:01 +0000
commit318cad33231f765f9b6b2af4bb43f8c281b99d19 (patch)
tree654f43a018ff6a194fd4d81c05e969aa08bbe687 /include/llvm/MC/MCParser
parent030f63a397edc20f8f661bac62f7b90cb5cf57bc (diff)
downloadllvm-318cad33231f765f9b6b2af4bb43f8c281b99d19.tar.gz
llvm-318cad33231f765f9b6b2af4bb43f8c281b99d19.tar.bz2
llvm-318cad33231f765f9b6b2af4bb43f8c281b99d19.tar.xz
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCParser')
-rw-r--r--include/llvm/MC/MCParser/MCAsmParser.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/MC/MCParser/MCAsmParser.h b/include/llvm/MC/MCParser/MCAsmParser.h
index cb8476d2ce..eeeacbc2fc 100644
--- a/include/llvm/MC/MCParser/MCAsmParser.h
+++ b/include/llvm/MC/MCParser/MCAsmParser.h
@@ -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.