summaryrefslogtreecommitdiff
path: root/lib/Transforms/Instrumentation/DebugIR.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-07-19 00:51:47 +0000
committerEric Christopher <echristo@gmail.com>2013-07-19 00:51:47 +0000
commit1fe3f9af7ff385c28b96cc46ee1ed3737c813c3a (patch)
tree29abc5e7d8e8b090bee5f7f891c45f2f75e63f25 /lib/Transforms/Instrumentation/DebugIR.cpp
parentf28019e5f77bff438d13aa4b73486fed603bca02 (diff)
downloadllvm-1fe3f9af7ff385c28b96cc46ee1ed3737c813c3a.tar.gz
llvm-1fe3f9af7ff385c28b96cc46ee1ed3737c813c3a.tar.bz2
llvm-1fe3f9af7ff385c28b96cc46ee1ed3737c813c3a.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@186637 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));