Revamp how debugging information is emitted for debug info objects.
authorBill Wendling <isanbard@gmail.com>
Tue, 26 Jun 2012 22:57:33 +0000 (22:57 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 26 Jun 2012 22:57:33 +0000 (22:57 +0000)
commit494f8c6cfaa7443bc708f6006c70f37ca30ac765
treea419dc48cf8314113172cca0f0c53aa038990092
parentd096479f31eb51bcbd418b6e852a34210141d80e
Revamp how debugging information is emitted for debug info objects.

It's not necessary for each DI class to have its own copy of `print' and
`dump'. Instead, just give DIDescriptor those methods and have it call the
appropriate debugging printing routine based on the type of the debug
information.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159237 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/DebugInfo.h
lib/Analysis/DebugInfo.cpp