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
llvm-svn: 266713
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