summaryrefslogtreecommitdiff
path: root/utils/TableGen/AsmWriterEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-18 04:51:57 +0000
committerChris Lattner <sabre@nondot.org>2007-07-18 04:51:57 +0000
commitad8c531e202adfc812aeabaaf87616ba27f02339 (patch)
treefbd3140673dcfb048893be92356f90e60d029e01 /utils/TableGen/AsmWriterEmitter.cpp
parent531ec1e7a2330a76ef7168167f42440cc88fbfd5 (diff)
downloadllvm-ad8c531e202adfc812aeabaaf87616ba27f02339.tar.gz
llvm-ad8c531e202adfc812aeabaaf87616ba27f02339.tar.bz2
llvm-ad8c531e202adfc812aeabaaf87616ba27f02339.tar.xz
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
Diffstat (limited to 'utils/TableGen/AsmWriterEmitter.cpp')
-rw-r--r--utils/TableGen/AsmWriterEmitter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp
index 4a72e76997..22ff064924 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;