Fix PR23045.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 30 Mar 2015 21:36:43 +0000 (21:36 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 30 Mar 2015 21:36:43 +0000 (21:36 +0000)
commita55ae077e43bf75ee091241d9917fe6227051b41
treecec572e1674c87892fbb99574465d2660d8e9b71
parent7f3757eb9b52008e996acf30a90a17b862542cec
Fix PR23045.

Keep a note in the materializer that we are stripping debug info so that
user doing a lazy read of the module don't hit outdated formats.

Thanks to Duncan for suggesting the fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233603 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfo.h
include/llvm/IR/GVMaterializer.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/IR/DebugInfo.cpp
tools/gold/gold-plugin.cpp
tools/llvm-link/llvm-link.cpp