diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2019-12-13 16:14:39 +0100 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2019-12-16 13:37:59 +0100 |
commit | c72bff682193118c054eb3d3c59eb718042787da (patch) | |
tree | ad1e60c69be410b8f80dae35ca44f5b3fc3ec2a1 /llvm/unittests/tools | |
parent | 181ab91efc9fb08dedda10a2fbc5fccb83ce8799 (diff) | |
download | llvm-c72bff682193118c054eb3d3c59eb718042787da.tar.gz |
[llvm-exegesis] Set up AsmTargetStreamer in readSnippets
Summary: This is a follow up on D71137 properly setting up the AsmTargetStreamer prior to AsmParser::Run call.
Reviewers: courbet, mstojanovic
Subscribers: tschuett, mikhail.ramalho, llvm-commits, petarj, atanasyan
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D71468
Diffstat (limited to 'llvm/unittests/tools')
-rw-r--r-- | llvm/unittests/tools/llvm-exegesis/X86/SnippetFileTest.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/unittests/tools/llvm-exegesis/X86/SnippetFileTest.cpp b/llvm/unittests/tools/llvm-exegesis/X86/SnippetFileTest.cpp index 04ba51cef277..da3974775be6 100644 --- a/llvm/unittests/tools/llvm-exegesis/X86/SnippetFileTest.cpp +++ b/llvm/unittests/tools/llvm-exegesis/X86/SnippetFileTest.cpp @@ -115,6 +115,13 @@ TEST_F(X86SnippetFileTest, MissingParam) { consumeError(std::move(Error)); } +TEST_F(X86SnippetFileTest, NoAsmStreamer) { + auto Snippets = TestCommon(R"( + .cv_fpo_proc foo 4 + )"); + EXPECT_FALSE((bool)Snippets.takeError()); +} + } // namespace } // namespace exegesis } // namespace llvm |