IR: Use the new DebugLoc API, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 30 Mar 2015 19:40:05 +0000 (19:40 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 30 Mar 2015 19:40:05 +0000 (19:40 +0000)
commit39acf8f243bcce1169b8d67f86291715abe1e0d1
tree0bca62e00116d56d41716963305de9f03e86072c
parent103d622517c3273d690ae76b2f7c84ceeb64bd2d
IR: Use the new DebugLoc API, NFC

Update lib/IR and lib/Bitcode to use the new `DebugLoc` API.  Added an
explicit conversion to `bool` (avoiding a conversion to `MDLocation`),
since a couple of these use cases need to handle broken code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233585 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfo.h
include/llvm/IR/DebugLoc.h
include/llvm/IR/IRBuilder.h
include/llvm/IR/Instruction.h
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/Bitcode/Writer/ValueEnumerator.cpp
lib/IR/Core.cpp
lib/IR/DebugInfo.cpp
lib/IR/DiagnosticInfo.cpp
lib/IR/Metadata.cpp