diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-13 18:17:41 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-13 18:17:41 +0000 |
commit | ffa59d622418c4093bc4adefe80201af0ab11e56 (patch) | |
tree | 4c33026ac99f5f4fd90ab97bb0693d2b3ac70c1a /base | |
parent | c03b9793bb64f1a4b819b74aabc21a70539e018a (diff) | |
download | chromium_src-ffa59d622418c4093bc4adefe80201af0ab11e56.zip chromium_src-ffa59d622418c4093bc4adefe80201af0ab11e56.tar.gz chromium_src-ffa59d622418c4093bc4adefe80201af0ab11e56.tar.bz2 |
clang: don't build unused function
This function is not used when the tested #define isn't available.
TEST=compiles
Review URL: http://codereview.chromium.org/3290001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59247 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/debug_util_posix.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/debug_util_posix.cc b/base/debug_util_posix.cc index d121696..dfafc13 100644 --- a/base/debug_util_posix.cc +++ b/base/debug_util_posix.cc @@ -49,6 +49,7 @@ const char kMangledSymbolPrefix[] = "_Z"; const char kSymbolCharacters[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_"; +#if !defined(USE_SYMBOLIZE) // Demangles C++ symbols in the given text. Example: // // "sconsbuild/Debug/base_unittests(_ZN10StackTraceC1Ev+0x20) [0x817778c]" @@ -94,6 +95,7 @@ void DemangleSymbols(std::string* text) { #endif // defined(__GLIBCXX__) } +#endif // !defined(USE_SYMBOLIZE) // Gets the backtrace as a vector of strings. If possible, resolve symbol // names and attach these. Otherwise just use raw addresses. Returns true |