[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:
Yang Fan 2021-03-10 11:47:00 +08:00
parent ea548a4e41
commit 3f7f7f1615
No known key found for this signature in database
GPG Key ID: 717E4EB972E515EF
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}