summaryrefslogtreecommitdiff
path: root/lib/Transforms/Instrumentation/DebugIR.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-07-18 19:11:29 +0000
committerEric Christopher <echristo@gmail.com>2013-07-18 19:11:29 +0000
commit6abb4d2ef28f2c688498a10dfe0e4bd1b36882e3 (patch)
treee3a3627d25507b8ae89edc1bebde7e86be57980b /lib/Transforms/Instrumentation/DebugIR.cpp
parentef69f54fec8ba71b6624226e5e7bf7675b013bac (diff)
downloadllvm-6abb4d2ef28f2c688498a10dfe0e4bd1b36882e3.tar.gz
llvm-6abb4d2ef28f2c688498a10dfe0e4bd1b36882e3.tar.bz2
llvm-6abb4d2ef28f2c688498a10dfe0e4bd1b36882e3.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186599 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/DebugIR.cpp')
-rw-r--r--lib/Transforms/Instrumentation/DebugIR.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Instrumentation/DebugIR.cpp b/lib/Transforms/Instrumentation/DebugIR.cpp
index cea19e6510..651381d88b 100644
--- a/lib/Transforms/Instrumentation/DebugIR.cpp
+++ b/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<MDNode *>(CUNode));