diff options
author | Eric Christopher <echristo@gmail.com> | 2013-07-18 19:11:29 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-07-18 19:11:29 +0000 |
commit | d0b2150f01c89eb6bcf469be9ae53e08420ae7ad (patch) | |
tree | f08c0e52883d173e5cfc99418e2d6f404372fe7e /llvm/lib/Transforms/Instrumentation | |
parent | 7b590d2684e6ec66424453ae25e14fd2322bbcdb (diff) | |
download | bcm5719-llvm-d0b2150f01c89eb6bcf469be9ae53e08420ae7ad.tar.gz bcm5719-llvm-d0b2150f01c89eb6bcf469be9ae53e08420ae7ad.zip |
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
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation')
-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 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<MDNode *>(CUNode)); |