From 2666b15908125479cea95066593873168127be72 Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Thu, 16 Jan 2014 01:51:12 +0000 Subject: 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 --- lib/IR/DiagnosticInfo.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/IR/DiagnosticInfo.cpp') 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(); +} -- cgit v1.2.3