Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 71ee93d

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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346750 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 4cc00e8 commit 71ee93d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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)