Without this change I get the following error:
lib/Target/AVR/AVRGenAsmMatcher.inc:1135:1: error: redundant #include of module 'LLVM_Utils.Support.Format' appears within namespace 'llvm' [-Wmodules-import-nested-redundant]
Differential D53425
Fix modules build of AVRAsmParser.cpp arichardson on Oct 19 2018, 2:33 AM. Authored by
Details Without this change I get the following error: lib/Target/AVR/AVRGenAsmMatcher.inc:1135:1: error: redundant #include of module 'LLVM_Utils.Support.Format' appears within namespace 'llvm' [-Wmodules-import-nested-redundant]
Diff Detail
Event TimelineComment Actions Hey @arichardson, sorry for the delay, exam period! This looks great. I remember building the LLVM tree recently, but I don't remember hitting this. I am unsure if I that was slightly before or slightly after you posted this patch on the 19th though. The llvm-avr-linux buildbot running clang didn't seem to hit this either. Perhaps it's a GCC thing? Regardless, AVRAsmParser is a private implementation detail of createAVRAsmParser and so moving it into an anonymous namespace makes sense. Thanks for the patch @arichardson |