[llvm] r241097 - Fix a fixme and make DICompileUnit a distinct node. Tested via clang.
Adrian Prantl
aprantl at apple.com
Tue Jun 30 11:32:18 PDT 2015
Author: adrian
Date: Tue Jun 30 13:32:18 2015
New Revision: 241097
URL: http://llvm.org/viewvc/llvm-project?rev=241097&view=rev
Log:
Fix a fixme and make DICompileUnit a distinct node. Tested via clang.
Modified:
llvm/trunk/lib/IR/DIBuilder.cpp
Modified: llvm/trunk/lib/IR/DIBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DIBuilder.cpp?rev=241097&r1=241096&r2=241097&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DIBuilder.cpp (original)
+++ llvm/trunk/lib/IR/DIBuilder.cpp Tue Jun 30 13:32:18 2015
@@ -141,9 +141,7 @@ DICompileUnit *DIBuilder::createCompileU
TempGVs = MDTuple::getTemporary(VMContext, None);
TempImportedModules = MDTuple::getTemporary(VMContext, None);
- // TODO: Switch to getDistinct(). We never want to merge compile units based
- // on contents.
- DICompileUnit *CUNode = DICompileUnit::get(
+ DICompileUnit *CUNode = DICompileUnit::getDistinct(
VMContext, Lang, DIFile::get(VMContext, Filename, Directory), Producer,
isOptimized, Flags, RunTimeVer, SplitName, Kind, TempEnumTypes.get(),
TempRetainTypes.get(), TempSubprograms.get(), TempGVs.get(),
More information about the llvm-commits
mailing list