summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Parser/Lexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Parser/Lexer.h')
-rw-r--r--mlir/lib/Parser/Lexer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/mlir/lib/Parser/Lexer.h b/mlir/lib/Parser/Lexer.h
index 896c26cc927..b1807711457 100644
--- a/mlir/lib/Parser/Lexer.h
+++ b/mlir/lib/Parser/Lexer.h
@@ -45,6 +45,9 @@ public:
/// at the designated point in the input.
void resetPointer(const char *newPointer) { curPtr = newPointer; }
+ /// Returns the start of the buffer.
+ const char *getBufferBegin() { return curBuffer.data(); }
+
private:
// Helpers.
Token formToken(Token::Kind kind, const char *tokStart) {
OpenPOWER on IntegriCloud