diff options
author | Eric Christopher <echristo@gmail.com> | 2013-07-18 19:13:06 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-07-18 19:13:06 +0000 |
commit | a4b6cf14f685a4bf4a033eafb709d01e176db8a8 (patch) | |
tree | 67053362f2b2ab2bfa3be1b67bcf2e6b62e20958 /llvm/lib/Transforms/Instrumentation/DebugIR.cpp | |
parent | a60ff976063855287fadfe6074969f3e6b2027be (diff) | |
download | bcm5719-llvm-a4b6cf14f685a4bf4a033eafb709d01e176db8a8.tar.gz bcm5719-llvm-a4b6cf14f685a4bf4a033eafb709d01e176db8a8.zip |
Revert "Remove DIBuilder cache of variable TheCU and change the few"
This reverts commit r186599 as I didn't want to commit this yet.
llvm-svn: 186601
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/DebugIR.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/DebugIR.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/DebugIR.cpp b/llvm/lib/Transforms/Instrumentation/DebugIR.cpp index 651381d88b5..cea19e6510d 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); } - CUNode = - Builder.createCompileUnit(dwarf::DW_LANG_C99, Filename, Directory, - Producer, IsOptimized, Flags, RuntimeVersion); + Builder.createCompileUnit(dwarf::DW_LANG_C99, Filename, Directory, Producer, + IsOptimized, Flags, RuntimeVersion); + CUNode = Builder.getCU(); if (CUToReplace) CUToReplace->replaceAllUsesWith(const_cast<MDNode *>(CUNode)); |