Skip to content

Commit 5d62a79

Browse files
[Serialization] Remove getMacroID (llvm#127413)
The last use was removed in: commit ee97793 Author: Richard Smith <[email protected]> Date: Fri May 1 21:22:17 2015 +0000
1 parent 885382f commit 5d62a79

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

clang/include/clang/Serialization/ASTWriter.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -751,9 +751,6 @@ class ASTWriter : public ASTDeserializationListener,
751751
/// Get the unique number used to refer to the given macro.
752752
serialization::MacroID getMacroRef(MacroInfo *MI, const IdentifierInfo *Name);
753753

754-
/// Determine the ID of an already-emitted macro.
755-
serialization::MacroID getMacroID(MacroInfo *MI);
756-
757754
uint32_t getMacroDirectivesOffset(const IdentifierInfo *Name);
758755

759756
/// Emit a reference to a type.

clang/lib/Serialization/ASTWriter.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6666,14 +6666,6 @@ MacroID ASTWriter::getMacroRef(MacroInfo *MI, const IdentifierInfo *Name) {
66666666
return ID;
66676667
}
66686668

6669-
MacroID ASTWriter::getMacroID(MacroInfo *MI) {
6670-
if (!MI || MI->isBuiltinMacro())
6671-
return 0;
6672-
6673-
assert(MacroIDs.contains(MI) && "Macro not emitted!");
6674-
return MacroIDs[MI];
6675-
}
6676-
66776669
uint32_t ASTWriter::getMacroDirectivesOffset(const IdentifierInfo *Name) {
66786670
return IdentMacroDirectivesOffsetMap.lookup(Name);
66796671
}

0 commit comments

Comments
 (0)