DebugInfo: Move DILocation::computeNewDiscriminators()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 14 Apr 2015 00:35:42 +0000 (00:35 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 14 Apr 2015 00:35:42 +0000 (00:35 +0000)
commit5f1ef8aec6932a6fc6125021ebf3ace693c58eed
tree33e4aab36efb4d4c0e197312ca085fbff4bfc82e
parent31bbd1ac1e62a25a751bc43c04d3dd6def02de2e
DebugInfo: Move DILocation::computeNewDiscriminators()

As documented in PR23200 (and the FIXMEs I've added to the code here),
this logic is fairly broken: it modifies the `LLVMContext` in a way that
affects other modules and cannot be serialized to assembly/bitcode.  For
now, move it over to `MDLocation::computeNewDiscriminators()` anyway.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234825 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfo.h
include/llvm/IR/DebugInfoMetadata.h
lib/IR/DebugInfo.cpp
lib/IR/DebugInfoMetadata.cpp
lib/Transforms/Utils/AddDiscriminators.cpp