Replace global std::string with const char[]

llvm-svn: 174332
This commit is contained in:
Alexey Samsonov 2013-02-04 15:55:26 +00:00
parent 7ab68fbd1d
commit d6cef10af8
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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 {