Skip to content

Commit 4eb9390

Browse files
committed
Fix modules build of AVRAsmParser.cpp
Summary: 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] Reviewers: dylanmckay Reviewed By: dylanmckay Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D53425 llvm-svn: 346750
1 parent 8ef9bab commit 4eb9390

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434

3535
#define DEBUG_TYPE "avr-asm-parser"
3636

37-
namespace llvm {
37+
using namespace llvm;
3838

39+
namespace {
3940
/// Parses AVR assembly from a stream.
4041
class AVRAsmParser : public MCTargetAsmParser {
4142
const MCSubtargetInfo &STI;
@@ -245,6 +246,8 @@ class AVROperand : public MCParsedAsmOperand {
245246
}
246247
};
247248

249+
} // end anonymous namespace.
250+
248251
// Auto-generated Match Functions
249252

250253
/// Maps from the set of all register names to a register number.
@@ -708,5 +711,3 @@ unsigned AVRAsmParser::validateTargetOperandClass(MCParsedAsmOperand &AsmOp,
708711
}
709712
return Match_InvalidOperand;
710713
}
711-
712-
} // end of namespace llvm

0 commit comments

Comments
 (0)