mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
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
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user