diff options
author | Eric Christopher <echristo@gmail.com> | 2013-07-19 00:51:47 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-07-19 00:51:47 +0000 |
commit | 1fe3f9af7ff385c28b96cc46ee1ed3737c813c3a (patch) | |
tree | 29abc5e7d8e8b090bee5f7f891c45f2f75e63f25 /lib/Transforms/Instrumentation/DebugIR.cpp | |
parent | f28019e5f77bff438d13aa4b73486fed603bca02 (diff) | |
download | external_llvm-1fe3f9af7ff385c28b96cc46ee1ed3737c813c3a.zip external_llvm-1fe3f9af7ff385c28b96cc46ee1ed3737c813c3a.tar.gz external_llvm-1fe3f9af7ff385c28b96cc46ee1ed3737c813c3a.tar.bz2 |
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.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Instrumentation/DebugIR.cpp b/lib/Transforms/Instrumentation/DebugIR.cpp index cea19e6..651381d 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)); |