forked from OSchip/llvm-project
[clang][APINotes] Fix gcc Wunused-function warning (NFC)
GCC warning: ``` /llvm-project/clang/lib/APINotes/APINotesYAMLCompiler.cpp:574:6: warning: ‘void {anonymous}::Module::dump()’ defined but not used [-Wunused-function] 574 | void Module::dump() { | ^~~~~~ ```
This commit is contained in:
parent
ea548a4e41
commit
3f7f7f1615
|
@ -551,7 +551,7 @@ struct Module {
|
|||
|
||||
llvm::Optional<bool> SwiftInferImportAsMember = {llvm::None};
|
||||
|
||||
LLVM_DUMP_METHOD void dump() /*const*/;
|
||||
void dump() /*const*/;
|
||||
};
|
||||
} // namespace
|
||||
|
||||
|
@ -571,7 +571,7 @@ template <> struct MappingTraits<Module> {
|
|||
} // namespace yaml
|
||||
} // namespace llvm
|
||||
|
||||
void Module::dump() {
|
||||
LLVM_DUMP_METHOD void Module::dump() {
|
||||
llvm::yaml::Output OS(llvm::errs());
|
||||
OS << *this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue