diff options
| author | Thomas Preud'homme <thomasp@graphcore.ai> | 2019-09-30 14:12:03 +0000 |
|---|---|---|
| committer | Thomas Preud'homme <thomasp@graphcore.ai> | 2019-09-30 14:12:03 +0000 |
| commit | 02ada9bd2b41d850876a483bede59715e7550c1e (patch) | |
| tree | 52126b5601421bcdec1acf4bae2f0883a34e35d5 /llvm/utils | |
| parent | d1caf939572564ce337e91abba0abc1ffe06ca87 (diff) | |
| download | bcm5719-llvm-02ada9bd2b41d850876a483bede59715e7550c1e.tar.gz bcm5719-llvm-02ada9bd2b41d850876a483bede59715e7550c1e.zip | |
[FileCheck] Remove implementation types from API
Summary:
Remove use of FileCheckPatternContext and FileCheckString concrete types
from FileCheck API to allow moving it and the other implementation only
only declarations into a private header file.
Reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson, rnk
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68186
llvm-svn: 373211
Diffstat (limited to 'llvm/utils')
| -rw-r--r-- | llvm/utils/FileCheck/FileCheck.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp index 2710ccb406c..8718be28ac9 100644 --- a/llvm/utils/FileCheck/FileCheck.cpp +++ b/llvm/utils/FileCheck/FileCheck.cpp @@ -597,8 +597,7 @@ int main(int argc, char **argv) { CheckFileText, CheckFile.getBufferIdentifier()), SMLoc()); - std::vector<FileCheckString> CheckStrings; - if (FC.ReadCheckFile(SM, CheckFileText, PrefixRE, CheckStrings)) + if (FC.readCheckFile(SM, CheckFileText, PrefixRE)) return 2; // Open the file to check and add it to SourceMgr. @@ -628,7 +627,7 @@ int main(int argc, char **argv) { DumpInput = DumpInputOnFailure ? DumpInputFail : DumpInputNever; std::vector<FileCheckDiag> Diags; - int ExitCode = FC.CheckInput(SM, InputFileText, CheckStrings, + int ExitCode = FC.checkInput(SM, InputFileText, DumpInput == DumpInputNever ? nullptr : &Diags) ? EXIT_SUCCESS : 1; |

