diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-02-04 15:55:26 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-02-04 15:55:26 +0000 |
commit | 638c63ccf74807bbbff444d527a0acad592b3802 (patch) | |
tree | b893490c749c3dd16bd7f84b610f6ceab213397d /tools | |
parent | 3e1635d08ce786d32dd53f772ccc6a8b4f720ff3 (diff) |
Replace global std::string with const char[]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174332 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-symbolizer/LLVMSymbolize.cpp | 2 | ||||
-rw-r--r-- | tools/llvm-symbolizer/LLVMSymbolize.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-symbolizer/LLVMSymbolize.cpp b/tools/llvm-symbolizer/LLVMSymbolize.cpp index 1b0ece5fc5..42e76f8c85 100644 --- a/tools/llvm-symbolizer/LLVMSymbolize.cpp +++ b/tools/llvm-symbolizer/LLVMSymbolize.cpp @@ -132,7 +132,7 @@ bool ModuleInfo::getNameFromSymbolTable(SymbolRef::Type Type, uint64_t Address, return false; } -const std::string LLVMSymbolizer::kBadString = "??"; +const char LLVMSymbolizer::kBadString[] = "??"; std::string LLVMSymbolizer::symbolizeCode(const std::string &ModuleName, uint64_t ModuleOffset) { diff --git a/tools/llvm-symbolizer/LLVMSymbolize.h b/tools/llvm-symbolizer/LLVMSymbolize.h index aae6f00206..89684ddef2 100644 --- a/tools/llvm-symbolizer/LLVMSymbolize.h +++ b/tools/llvm-symbolizer/LLVMSymbolize.h @@ -59,7 +59,7 @@ private: typedef std::map<std::string, ModuleInfo*> ModuleMapTy; ModuleMapTy Modules; Options Opts; - static const std::string kBadString; + static const char kBadString[]; }; class ModuleInfo { |