Give CurStreamType's enum a name. This works around what is apparently
authorDan Gohman <gohman@apple.com>
Thu, 9 Dec 2010 20:35:40 +0000 (20:35 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 9 Dec 2010 20:35:40 +0000 (20:35 +0000)
a bug in Apple GCC 4.0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121409 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp

index f11fdb893f999daffb5d41fd1a5c278bee344e79..e6c82a326aa796533a8d5be3ad731a22efa9f357 100644 (file)
@@ -61,12 +61,19 @@ NonSymbolic("non-symbolic",
             cl::desc("Emit numberic info in dump even if"
                      " symbolic info is available"));
 
-/// CurStreamType - If we can sniff the flavor of this stream, we can produce
-/// better dump info.
-static enum {
+namespace {
+
+/// CurStreamTypeType - A type for CurStreamType
+enum CurStreamTypeType {
   UnknownBitstream,
   LLVMIRBitstream
-} CurStreamType;
+};
+
+}
+
+/// CurStreamType - If we can sniff the flavor of this stream, we can produce
+/// better dump info.
+static CurStreamTypeType CurStreamType;
 
 
 /// GetBlockName - Return a symbolic block name if known, otherwise return