AddDiscriminators: Create new MDLocation directly
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 14 Apr 2015 00:34:30 +0000 (00:34 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 14 Apr 2015 00:34:30 +0000 (00:34 +0000)
commit31bbd1ac1e62a25a751bc43c04d3dd6def02de2e
tree3e7182f2e1aef019891248acb63603e6ade85374
parent7b161773fd642f90d9d82d763f2b36e7f6f39cf0
AddDiscriminators: Create new MDLocation directly

I don't see a reason to add the `copyWithNewScope()` API over to
`MDLocation` -- it seems to be a holdover from when creating locations
required knowing details of operand layout -- so change
`AddDiscriminators` to call `MDLocation::get()` directly.  Should be no
functionality change here.

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