summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SampleProfile/syntax.ll
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2014-03-14 21:58:59 +0000
committerDiego Novillo <dnovillo@google.com>2014-03-14 21:58:59 +0000
commita32aa3251cb5a16757c0c7994392a2da222752fd (patch)
tree271ff91e9745911893024c9ed6f3ee3b4d9462d5 /llvm/test/Transforms/SampleProfile/syntax.ll
parente6f465e51f249d2a1154663834e5ceb26863526c (diff)
downloadbcm5719-llvm-a32aa3251cb5a16757c0c7994392a2da222752fd.tar.gz
bcm5719-llvm-a32aa3251cb5a16757c0c7994392a2da222752fd.zip
Use DiagnosticInfo facility.
Summary: The sample profiler pass emits several error messages. Instead of just aborting the compiler with report_fatal_error, we can emit better messages using DiagnosticInfo. This adds a new sub-class of DiagnosticInfo to handle the sample profiler. Reviewers: chandlerc, qcolombet CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D3086 llvm-svn: 203976
Diffstat (limited to 'llvm/test/Transforms/SampleProfile/syntax.ll')
-rw-r--r--llvm/test/Transforms/SampleProfile/syntax.ll14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/test/Transforms/SampleProfile/syntax.ll b/llvm/test/Transforms/SampleProfile/syntax.ll
index 60b9dac88cd..3aee6b219a8 100644
--- a/llvm/test/Transforms/SampleProfile/syntax.ll
+++ b/llvm/test/Transforms/SampleProfile/syntax.ll
@@ -10,10 +10,10 @@ define void @empty() {
entry:
ret void
}
-; NO-DEBUG: LLVM ERROR: No debug information found in function empty
-; MISSING-FILE: LLVM ERROR: Could not open file missing.prof:
-; BAD-FN-HEADER: LLVM ERROR: {{.*}}bad_fn_header.prof:1: Expected 'mangled_name:NUM:NUM', found empty:100:BAD
-; BAD-SAMPLE-LINE: LLVM ERROR: {{.*}}bad_sample_line.prof:3: Expected 'NUM[.NUM]: NUM[ mangled_name:NUM]*', found 1: BAD
-; BAD-LINE-VALUES: LLVM ERROR: {{.*}}bad_line_values.prof:2: Expected 'mangled_name:NUM:NUM', found -1: 10
-; BAD-DISCRIMINATOR-VALUE: LLVM ERROR: {{.*}}bad_discriminator_value.prof:2: Expected 'NUM[.NUM]: NUM[ mangled_name:NUM]*', found 1.-3: 10
-; BAD-SAMPLES: LLVM ERROR: {{.*}}bad_samples.prof:2: Expected 'NUM[.NUM]: NUM[ mangled_name:NUM]*', found 1.3: -10
+; NO-DEBUG: error: No debug information found in function empty
+; MISSING-FILE: error: missing.prof: No such file or directory
+; BAD-FN-HEADER: error: {{.*}}bad_fn_header.prof:1: Expected 'mangled_name:NUM:NUM', found empty:100:BAD
+; BAD-SAMPLE-LINE: error: {{.*}}bad_sample_line.prof:3: Expected 'NUM[.NUM]: NUM[ mangled_name:NUM]*', found 1: BAD
+; BAD-LINE-VALUES: error: {{.*}}bad_line_values.prof:2: Expected 'mangled_name:NUM:NUM', found -1: 10
+; BAD-DISCRIMINATOR-VALUE: error: {{.*}}bad_discriminator_value.prof:2: Expected 'NUM[.NUM]: NUM[ mangled_name:NUM]*', found 1.-3: 10
+; BAD-SAMPLES: error: {{.*}}bad_samples.prof:2: Expected 'NUM[.NUM]: NUM[ mangled_name:NUM]*', found 1.3: -10
OpenPOWER on IntegriCloud