DwarfDebug: Avoid creating new DebugLocs in the backend
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 30 Mar 2015 21:32:28 +0000 (21:32 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 30 Mar 2015 21:32:28 +0000 (21:32 +0000)
commit494ae8db19a035bcf01ce43e7623a145491abbd4
treeecb727cb4b0f2a6f3df7b5392ca90d6c18bce1c2
parent769b935ebc8ebd311ee8659c53d14652c0cee00d
DwarfDebug: Avoid creating new DebugLocs in the backend

Don't use `DebugLoc::getFnDebugLoc()`, which creates new `MDLocation`s,
in the backend.  We just want to grab the subprogram here anyway.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233601 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfoMetadata.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/IR/DebugInfoMetadata.cpp