OSDN Git Service

Revert r302469 "Make it illegal for two Functions to point to the same DISubprogram"
authorHans Wennborg <hans@hanshq.net>
Tue, 9 May 2017 14:44:15 +0000 (14:44 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 9 May 2017 14:44:15 +0000 (14:44 +0000)
commit1f81185df2789f29dd36dbbecbd4c5e4e583b85a
treee1cec802edebc74652da8ec1664ff83be4808db4
parent1fbed43c3e96fbe22c1b4cf1f2aa6b2cd018c672
Revert r302469 "Make it illegal for two Functions to point to the same DISubprogram"

This caused PR32977.

Original commit message:

> Make it illegal for two Functions to point to the same DISubprogram
>
> As recently discussed on llvm-dev [1], this patch makes it illegal for
> two Functions to point to the same DISubprogram and updates
> FunctionCloner to also clone the debug info of a function to conform
> to the new requirement. To simplify the implementation it also factors
> out the creation of inlineAt locations from the Inliner into a
> general-purpose utility in DILocation.
>
> [1] http://lists.llvm.org/pipermail/llvm-dev/2017-May/112661.html
> <rdar://problem/31926379>
>
> Differential Revision: https://reviews.llvm.org/D32975

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302533 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugLoc.h
lib/IR/DebugLoc.cpp
lib/IR/Verifier.cpp
lib/Transforms/Utils/CloneFunction.cpp
lib/Transforms/Utils/InlineFunction.cpp
test/Verifier/metadata-function-dbg.ll
unittests/Transforms/Utils/Cloning.cpp