summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-12-09 20:35:40 +0000
committerDan Gohman <gohman@apple.com>2010-12-09 20:35:40 +0000
commitf749ad734f3ff3c88bb4d5bb8256c817b3422af0 (patch)
treec6cbbed42f4f2bb3e3d1ad0f30cb111682942a16 /llvm/tools
parent3ef19d9d48ea21def23eb4c012ae9f8c17c00432 (diff)
downloadbcm5719-llvm-f749ad734f3ff3c88bb4d5bb8256c817b3422af0.tar.gz
bcm5719-llvm-f749ad734f3ff3c88bb4d5bb8256c817b3422af0.zip
Give CurStreamType's enum a name. This works around what is apparently
a bug in Apple GCC 4.0. llvm-svn: 121409
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp b/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
index f11fdb893f9..e6c82a326aa 100644
--- a/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
+++ b/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
@@ -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
OpenPOWER on IntegriCloud