[llvm-commits] [llvm] r121409 - /llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
Dan Gohman
gohman at apple.com
Thu Dec 9 12:35:40 PST 2010
Author: djg
Date: Thu Dec 9 14:35:40 2010
New Revision: 121409
URL: http://llvm.org/viewvc/llvm-project?rev=121409&view=rev
Log:
Give CurStreamType's enum a name. This works around what is apparently
a bug in Apple GCC 4.0.
Modified:
llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
Modified: llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp?rev=121409&r1=121408&r2=121409&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp (original)
+++ llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp Thu Dec 9 14:35:40 2010
@@ -61,12 +61,19 @@
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
More information about the llvm-commits
mailing list