mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
Moved Args::StringToXIntYZ to StringConvert::ToXIntYZ
The refactor was motivated by some comments that Greg made http://reviews.llvm.org/D6918 and also to break a dependency cascade that caused functions linking in string->int conversion functions to pull in most of lldb llvm-svn: 226199
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
// C++ Includes
|
||||
// Other libraries and framework includes
|
||||
// Project includes
|
||||
#include "lldb/Interpreter/Args.h"
|
||||
#include "lldb/Host/StringConvert.h"
|
||||
|
||||
using namespace lldb_private;
|
||||
|
||||
@@ -148,7 +148,7 @@ UnixSignals::GetSignalNumberFromName (const char *name) const
|
||||
return pos->first;
|
||||
}
|
||||
|
||||
const int32_t signo = Args::StringToSInt32(name, LLDB_INVALID_SIGNAL_NUMBER, 0);
|
||||
const int32_t signo = StringConvert::ToSInt32(name, LLDB_INVALID_SIGNAL_NUMBER, 0);
|
||||
if (signo != LLDB_INVALID_SIGNAL_NUMBER)
|
||||
return signo;
|
||||
return LLDB_INVALID_SIGNAL_NUMBER;
|
||||
|
||||
Reference in New Issue
Block a user