From d0b2150f01c89eb6bcf469be9ae53e08420ae7ad Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 18 Jul 2013 19:11:29 +0000 Subject: Remove DIBuilder cache of variable TheCU and change the few uses that wanted it. Also change the interface for createCompileUnit to compensate. Fix comments that refer to TheCU as well. llvm-svn: 186599 --- llvm/lib/Transforms/Instrumentation/DebugIR.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Transforms/Instrumentation/DebugIR.cpp') diff --git a/llvm/lib/Transforms/Instrumentation/DebugIR.cpp b/llvm/lib/Transforms/Instrumentation/DebugIR.cpp index cea19e6510d..651381d88b5 100644 --- a/llvm/lib/Transforms/Instrumentation/DebugIR.cpp +++ b/llvm/lib/Transforms/Instrumentation/DebugIR.cpp @@ -289,9 +289,9 @@ private: "LLVM Version " STR(LLVM_VERSION_MAJOR) "." STR(LLVM_VERSION_MINOR); } - Builder.createCompileUnit(dwarf::DW_LANG_C99, Filename, Directory, Producer, - IsOptimized, Flags, RuntimeVersion); - CUNode = Builder.getCU(); + CUNode = + Builder.createCompileUnit(dwarf::DW_LANG_C99, Filename, Directory, + Producer, IsOptimized, Flags, RuntimeVersion); if (CUToReplace) CUToReplace->replaceAllUsesWith(const_cast(CUNode)); -- cgit v1.2.3