diff options
author | Manman Ren <manman.ren@gmail.com> | 2014-01-16 01:51:12 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2014-01-16 01:51:12 +0000 |
commit | 2666b15908125479cea95066593873168127be72 (patch) | |
tree | 8d18e91c3cba8e0add24b9b49b01c00919cc2324 /lib/IR/DiagnosticInfo.cpp | |
parent | 897473a28dc52e941923ea22939f69dacb85a547 (diff) | |
download | llvm-2666b15908125479cea95066593873168127be72.tar.gz llvm-2666b15908125479cea95066593873168127be72.tar.bz2 llvm-2666b15908125479cea95066593873168127be72.tar.xz |
Report a warning when dropping outdated debug info metadata.
Use DiagnosticInfo to emit the warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199346 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/DiagnosticInfo.cpp')
-rw-r--r-- | lib/IR/DiagnosticInfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/IR/DiagnosticInfo.cpp b/lib/IR/DiagnosticInfo.cpp index 2b1221acdc..bd758830a2 100644 --- a/lib/IR/DiagnosticInfo.cpp +++ b/lib/IR/DiagnosticInfo.cpp @@ -51,3 +51,8 @@ void DiagnosticInfoStackSize::print(DiagnosticPrinter &DP) const { DP << "stack size limit exceeded (" << getStackSize() << ") in " << getFunction(); } + +void DiagnosticInfoDebugMetadataVersion::print(DiagnosticPrinter &DP) const { + DP << "invalid debug metadata version (" << getMetadataVersion() << ") in " + << getModule(); +} |