mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
IR: Add MDLocation class
Add a new subclass of `UniquableMDNode`, `MDLocation`. This will be the IR version of `DebugLoc` and `DILocation`. The goal is to rename this to `DILocation` once the IR classes supersede the `DI`-prefixed wrappers. This isn't used anywhere yet. Part of PR21433. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225824 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -140,11 +140,15 @@ LLVMContextImpl::~LLVMContextImpl() {
|
||||
I->dropAllReferences();
|
||||
for (auto *I : MDTuples)
|
||||
I->dropAllReferences();
|
||||
for (auto *I : MDLocations)
|
||||
I->dropAllReferences();
|
||||
|
||||
for (UniquableMDNode *I : DistinctMDNodes)
|
||||
I->deleteAsSubclass();
|
||||
for (MDTuple *I : MDTuples)
|
||||
delete I;
|
||||
for (MDLocation *I : MDLocations)
|
||||
delete I;
|
||||
|
||||
// Destroy MDStrings.
|
||||
MDStringCache.clear();
|
||||
|
Reference in New Issue
Block a user