[llvm-commits] [llvm] r39993 - /llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
Chris Lattner
sabre at nondot.org
Tue Jul 17 21:51:57 PDT 2007
Author: lattner
Date: Tue Jul 17 23:51:57 2007
New Revision: 39993
URL: http://llvm.org/viewvc/llvm-project?rev=39993&view=rev
Log:
Work around a bogus gcc 4.2 warning.
Modified:
llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
Modified: llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp?rev=39993&r1=39992&r2=39993&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp Tue Jul 17 23:51:57 2007
@@ -28,7 +28,8 @@
C == '_';
}
-namespace {
+// This should be an anon namespace, this works around a GCC warning.
+namespace llvm {
struct AsmWriterOperand {
enum { isLiteralTextOperand, isMachineInstrOperand } OperandType;
More information about the llvm-commits
mailing list