diff options
author | Dan Gohman <gohman@apple.com> | 2010-12-09 20:35:40 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-12-09 20:35:40 +0000 |
commit | e7e4b51afc12b248927896fb76b4361e18468079 (patch) | |
tree | ee217b3058a8da8c3bfbf24e24d4668e2c1c3322 /tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp | |
parent | 05018c2f2872a05b1a2fff1a9934621ba1f38084 (diff) |
Give CurStreamType's enum a name. This works around what is apparently
a bug in Apple GCC 4.0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121409 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp')
-rw-r--r-- | tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp b/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp index f11fdb893f..e6c82a326a 100644 --- a/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp +++ b/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 |