diff options
author | Jason Molenda <jmolenda@apple.com> | 2014-10-17 01:36:20 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2014-10-17 01:36:20 +0000 |
commit | 61e0a3ef1f688597e7d9fa7bd63721712df244f9 (patch) | |
tree | 4116ffc6bb14295ec7e391f9638a890beb6f14ae /lldb/source/Core/FastDemangle.cpp | |
parent | 0eb2cec9362be75f8929f346f7b9a15ff7df3c65 (diff) | |
download | bcm5719-llvm-61e0a3ef1f688597e7d9fa7bd63721712df244f9.tar.gz bcm5719-llvm-61e0a3ef1f688597e7d9fa7bd63721712df244f9.zip |
Put #if 0 blocks around three sections of code that are intentionally
unreachable so we don't get warnings about them.
Completely initialize a structure instead of leaving some of its fields
potentially indeterminate (although in reality they would all be set
before use -- but the compiler warning doesn't know that).
clang warning.
llvm-svn: 220017
Diffstat (limited to 'lldb/source/Core/FastDemangle.cpp')
-rw-r--r-- | lldb/source/Core/FastDemangle.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lldb/source/Core/FastDemangle.cpp b/lldb/source/Core/FastDemangle.cpp index a965c0e3fd1..d696dbd4535 100644 --- a/lldb/source/Core/FastDemangle.cpp +++ b/lldb/source/Core/FastDemangle.cpp @@ -1010,6 +1010,7 @@ private: // This makes substitution et al ... interesting. return false; +#if 0 // TODO if (*m_read_ptr == 'Y') ++m_read_ptr; @@ -1071,6 +1072,7 @@ private: ReorderRange (EndRange (qualifier_start_cookie), insert_cookie); } return true; +#endif // TODO } // <array-type> ::= A <positive dimension number> _ <element type> @@ -1091,6 +1093,7 @@ private: return false; +#if 0 // TODO if (*m_read_ptr == '_') { ++m_read_ptr; @@ -1137,6 +1140,7 @@ private: Write(']'); return true; } +#endif // TODO } // <pointer-to-member-type> ::= M <class type> <member type> @@ -1721,11 +1725,13 @@ private: //TODO: grammar for all of this seems unclear... return false; +#if 0 // TODO if (*m_read_ptr == 'g' && *(m_read_ptr + 1) == 's') { m_read_ptr += 2; WriteNamespaceSeparator(); } +#endif // TODO } // <expression> ::= <unary operator-name> <expression> @@ -2063,7 +2069,7 @@ private: ParseName(bool parse_function_params = false, bool parse_discriminator = false) { - NameState name_state = { parse_function_params }; + NameState name_state = { parse_function_params, false, false, {0, 0}}; int name_start_cookie = GetStartCookie(); switch (*m_read_ptr) |