diff options
author | peter klausler <pklausler@nvidia.com> | 2018-02-09 14:04:11 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-15 15:58:44 -0800 |
commit | 09865ffe7b31826d94954d7c03a86f63c53c0c89 (patch) | |
tree | 4b9decfbb1c13a03ac1073d09f0868f0dc8e494c /flang/lib/parser/source.h | |
parent | 3558c22101d800983083ccdb9da679dd41570410 (diff) | |
download | llvm-09865ffe7b31826d94954d7c03a86f63c53c0c89.tar.gz |
[flang] Replace Position with Provenance everywhere.
Original-commit: flang-compiler/f18@8c2da3f8cc687012756a85567553500fac64c824
Reviewed-on: https://github.com/flang-compiler/f18/pull/9
Tree-same-pre-rewrite: false
Diffstat (limited to 'flang/lib/parser/source.h')
-rw-r--r-- | flang/lib/parser/source.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/flang/lib/parser/source.h b/flang/lib/parser/source.h index 03a2c32e609e..33d22e93da30 100644 --- a/flang/lib/parser/source.h +++ b/flang/lib/parser/source.h @@ -5,9 +5,9 @@ // - Line ending markers are converted to single newline characters // - A newline character is added to the last line of the file if one is needed -#include "position.h" #include <sstream> #include <string> +#include <utility> #include <vector> namespace Fortran { @@ -23,9 +23,7 @@ public: const char *content() const { return content_; } size_t bytes() const { return bytes_; } size_t lines() const { return lineStart_.size(); } - Position FindOffsetPosition(size_t) const; - size_t FindPositionOffset(int lineNumber, int column) const; - size_t FindPositionOffset(Position) const; + std::pair<int, int> FindOffsetLineAndColumn(size_t) const; private: std::string path_; |