Debug Info: move StripDebugInfo from StripSymbols.cpp to DebugInfo.cpp.
authorManman Ren <manman.ren@gmail.com>
Fri, 22 Nov 2013 22:06:31 +0000 (22:06 +0000)
committerManman Ren <manman.ren@gmail.com>
Fri, 22 Nov 2013 22:06:31 +0000 (22:06 +0000)
commite6c749a3ec4ac77f1384834d4871bb5a588d40df
tree189b6488561f55b83c8c572a55f26087b16fb8d2
parentbec50063a5e546b7f5786961500566f13984679b
Debug Info: move StripDebugInfo from StripSymbols.cpp to DebugInfo.cpp.

We can share the implementation between StripSymbols and dropping debug info
for metadata versions that do not match.

Also update the comments to match the implementation. A follow-on patch will
drop the "Debug Info Version" module flag in StripDebugInfo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195505 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo.h
lib/IR/DebugInfo.cpp
lib/Transforms/IPO/StripSymbols.cpp