DebugLoc: Remove getFromDILexicalBlock()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 30 Mar 2015 23:47:26 +0000 (23:47 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 30 Mar 2015 23:47:26 +0000 (23:47 +0000)
commit497110d1b0ebcab15eb001d593747f113af047a4
treed859fdbab0b496c122adaf45bd259e0df7b1fab6
parent62e3e389b9e72a0d43f4166ba9b7cc88b58b49f5
DebugLoc: Remove getFromDILexicalBlock()

The only user of `DebugLoc::getFromDILexicalBlock()` was creating a new
`MDLocation` as convenient API for passing an `MDScope`.  Stop doing
that, and remove the API.  If in the future we actually *want* to create
new DebugLocs, calling `MDLexicalBlock::get()` makes more sense.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233643 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LexicalScopes.h
include/llvm/IR/DebugLoc.h
lib/CodeGen/LexicalScopes.cpp
lib/IR/DebugLoc.cpp