Work around a bogus gcc 4.2 warning.
authorChris Lattner <sabre@nondot.org>
Wed, 18 Jul 2007 04:51:57 +0000 (04:51 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 18 Jul 2007 04:51:57 +0000 (04:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39993 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/AsmWriterEmitter.cpp

index 4a72e76997b478eb8a669d2c65b56d6299cd53d1..22ff06492406bb8a3f514b7be5903f4fde3b9d75 100644 (file)
@@ -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;