]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
Use DiagnosticInfo facility.
authorDiego Novillo <dnovillo@google.com>
Fri, 14 Mar 2014 21:58:59 +0000 (21:58 +0000)
committerDiego Novillo <dnovillo@google.com>
Fri, 14 Mar 2014 21:58:59 +0000 (21:58 +0000)
commit3f7c2f31ff0c47c68489e7fd87ef7a6277cd3085
treefa2fa120267dda8d997be468a8e3183b53451384
parentf90e07f6c33643279c3c6fde061ff98f22adf509
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203976 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DiagnosticInfo.h
lib/IR/DiagnosticInfo.cpp
lib/Transforms/Scalar/SampleProfile.cpp
test/Transforms/SampleProfile/syntax.ll