From: Chris Lattner Date: Wed, 18 Jul 2007 04:51:57 +0000 (+0000) Subject: Work around a bogus gcc 4.2 warning. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ad8c531e202adfc812aeabaaf87616ba27f02339;p=oota-llvm.git Work around a bogus gcc 4.2 warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39993 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp index 4a72e76997b..22ff0649240 100644 --- a/utils/TableGen/AsmWriterEmitter.cpp +++ b/utils/TableGen/AsmWriterEmitter.cpp @@ -28,7 +28,8 @@ static bool isIdentChar(char C) { C == '_'; } -namespace { +// This should be an anon namespace, this works around a GCC warning. +namespace llvm { struct AsmWriterOperand { enum { isLiteralTextOperand, isMachineInstrOperand } OperandType;