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 | 2ebfb42fe906eff23165e47723a7cbb83e7c9e60 (patch) | |
| tree | 3c3daaaa6bd46698677c8e5b21491cf8a485998b /llvm/lib/IR/DiagnosticInfo.cpp | |
| parent | baf2c2211d7adac921f072f35c4a3664d7bc4b43 (diff) | |
| download | bcm5719-llvm-2ebfb42fe906eff23165e47723a7cbb83e7c9e60.tar.gz bcm5719-llvm-2ebfb42fe906eff23165e47723a7cbb83e7c9e60.zip | |
Report a warning when dropping outdated debug info metadata.
Use DiagnosticInfo to emit the warning.
llvm-svn: 199346
Diffstat (limited to 'llvm/lib/IR/DiagnosticInfo.cpp')
| -rw-r--r-- | llvm/lib/IR/DiagnosticInfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/IR/DiagnosticInfo.cpp b/llvm/lib/IR/DiagnosticInfo.cpp index 2b1221acdca..bd758830a2b 100644 --- a/llvm/lib/IR/DiagnosticInfo.cpp +++ b/llvm/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(); +} |

