[DebugInfo] Changed DIBuilder::createCompileUnit() to take DIFile instead of FileName...
authorAmjad Aboud <amjad.aboud@intel.com>
Wed, 14 Dec 2016 20:24:54 +0000 (20:24 +0000)
committerAmjad Aboud <amjad.aboud@intel.com>
Wed, 14 Dec 2016 20:24:54 +0000 (20:24 +0000)
commit43c8b6b7b2277e1ae07ca86ee58859a5aab6acc1
tree423dfb9b91765b0ad1696cf04ba9fc3716e1e3f3
parentfa9a17ee80eb7ca6f3b74411f5a4b7d4d578e300
[DebugInfo] Changed DIBuilder::createCompileUnit() to take DIFile instead of FileName and Directory.
This way it will be easier to expand DIFile (e.g., to contain checksum) without the need to modify the createCompileUnit() API.

Reviewers: llvm-commits, rnk

Differential Revision: https://reviews.llvm.org/D27762

llvm-svn: 289702
llvm/include/llvm/IR/DIBuilder.h
llvm/lib/IR/DIBuilder.cpp
llvm/unittests/IR/IRBuilderTest.cpp
llvm/unittests/IR/VerifierTest.cpp
llvm/unittests/Transforms/Utils/Cloning.cpp