Remove limitation on DebugIR that made it require existing debug metadata.
authorDaniel Malea <daniel.malea@intel.com>
Fri, 28 Jun 2013 19:05:23 +0000 (19:05 +0000)
committerDaniel Malea <daniel.malea@intel.com>
Fri, 28 Jun 2013 19:05:23 +0000 (19:05 +0000)
commitaadaf9f230a187b0bc87a18ddff78600b1622175
treeaddee3e832ae0c93f2dd7121d8b4c00958d38a1b
parenta5545bc2b9b1295f8443f6350487ec9b775b2d73
Remove limitation on DebugIR that made it require existing debug metadata.
- Build debug metadata for 'bare' Modules using DIBuilder
- DebugIR can be constructed to generate an IR file (to be seen by a debugger)
  or not in cases where the user already has an IR file on disk.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185193 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Instrumentation.h
lib/Transforms/Instrumentation/DebugIR.cpp