mirror of
https://github.com/RPCSX/llvm.git
synced 2026-01-31 01:05:23 +01:00
IR: Rename API for enabling ODR uniquing of DITypes, NFC
As per David's review, rename everything in the new API for ODR type
uniquing of debug info.
ensureDITypeMap => enableDebugTypeODRUniquing
destroyDITypeMap => disableDebugTypeODRUniquing
hasDITypeMap => isODRUniquingDebugTypes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266713 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2194,7 +2194,7 @@ std::error_code BitcodeReader::parseMetadata(bool ModuleLevel) {
|
||||
auto *Identifier = getMDString(Record[15]);
|
||||
DIType **MappedT = nullptr;
|
||||
if (!(Flags & DINode::FlagFwdDecl) && Identifier)
|
||||
MappedT = Context.getOrInsertDITypeMapping(*Identifier);
|
||||
MappedT = Context.getOrInsertODRUniquedType(*Identifier);
|
||||
|
||||
// Use the mapped type node, or create a new one if necessary.
|
||||
DIType *CT = MappedT ? *MappedT : nullptr;
|
||||
|
||||
Reference in New Issue
Block a user