1
Fork 0

Add SymbolExportInfo

This is currently a wrapper to `SymbolExportLevel` but it allows
later addition of extra information.
This commit is contained in:
Gary Guo 2022-04-02 22:27:33 +01:00
parent 419e3ba97b
commit 49cc6d1f84
12 changed files with 75 additions and 38 deletions

View file

@ -1355,7 +1355,7 @@ rustc_queries! {
// Does not include external symbols that don't have a corresponding DefId,
// like the compiler-generated `main` function and so on.
query reachable_non_generics(_: CrateNum)
-> DefIdMap<SymbolExportLevel> {
-> DefIdMap<SymbolExportInfo> {
storage(ArenaCacheSelector<'tcx>)
desc { "looking up the exported symbols of a crate" }
separate_provide_extern
@ -1672,7 +1672,7 @@ rustc_queries! {
/// correspond to a publicly visible symbol in `cnum` machine code.
/// - The `exported_symbols` sets of different crates do not intersect.
query exported_symbols(_: CrateNum)
-> &'tcx [(ExportedSymbol<'tcx>, SymbolExportLevel)] {
-> &'tcx [(ExportedSymbol<'tcx>, SymbolExportInfo)] {
desc { "exported_symbols" }
separate_provide_extern
}