From c408bc8e39e1e594dc545cf9d171ca133aa8393a Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 30 Jun 2015 18:32:18 +0000 Subject: [PATCH] Fix a fixme and make DICompileUnit a distinct node. Tested via clang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241097 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/DIBuilder.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/IR/DIBuilder.cpp b/lib/IR/DIBuilder.cpp index 6a5383d76ef..fcda8aec040 100644 --- a/lib/IR/DIBuilder.cpp +++ b/lib/IR/DIBuilder.cpp @@ -141,9 +141,7 @@ DICompileUnit *DIBuilder::createCompileUnit( 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(), -- 2.34.1