Qualify uses of std::string
PiperOrigin-RevId: 297148457 Change-Id: Id91f1da7d30e9a9880d8610c36ef8657f12817f0
This commit is contained in:
parent
64ff495f56
commit
18d4056bb1
|
@ -30,7 +30,7 @@ limitations under the License.
|
|||
namespace stream_executor {
|
||||
namespace interpreter {
|
||||
|
||||
XlaInterpreterPlatform::XlaInterpreterPlatform(const string& name,
|
||||
XlaInterpreterPlatform::XlaInterpreterPlatform(const std::string& name,
|
||||
const Platform::Id& id)
|
||||
: name_(name), id_(id) {}
|
||||
|
||||
|
@ -40,7 +40,7 @@ Platform::Id XlaInterpreterPlatform::id() const { return id_; }
|
|||
|
||||
int XlaInterpreterPlatform::VisibleDeviceCount() const { return 1; }
|
||||
|
||||
const string& XlaInterpreterPlatform::Name() const { return name_; }
|
||||
const std::string& XlaInterpreterPlatform::Name() const { return name_; }
|
||||
|
||||
port::StatusOr<std::unique_ptr<DeviceDescription>>
|
||||
XlaInterpreterPlatform::DescriptionForDevice(int ordinal) const {
|
||||
|
|
|
@ -31,14 +31,14 @@ class XlaInterpreterPlatform : public Platform {
|
|||
public:
|
||||
XlaInterpreterPlatform()
|
||||
: XlaInterpreterPlatform("Interpreter", kXlaInterpreterPlatformId) {}
|
||||
XlaInterpreterPlatform(const string& name, const Platform::Id& id);
|
||||
XlaInterpreterPlatform(const std::string& name, const Platform::Id& id);
|
||||
~XlaInterpreterPlatform() override;
|
||||
|
||||
Platform::Id id() const override;
|
||||
|
||||
int VisibleDeviceCount() const override;
|
||||
|
||||
const string& Name() const override;
|
||||
const std::string& Name() const override;
|
||||
|
||||
port::StatusOr<std::unique_ptr<DeviceDescription>> DescriptionForDevice(
|
||||
int ordinal) const override;
|
||||
|
@ -60,7 +60,7 @@ class XlaInterpreterPlatform : public Platform {
|
|||
|
||||
private:
|
||||
// This platform's name.
|
||||
string name_;
|
||||
std::string name_;
|
||||
// This platform's id.
|
||||
Platform::Id id_;
|
||||
|
||||
|
|
|
@ -60,8 +60,8 @@ int main(int argc, char** argv) {
|
|||
LOG(FATAL) << "local_client_aot_test_helper TARGET_CPU";
|
||||
}
|
||||
|
||||
string triple_string;
|
||||
string target_cpu = argv[1];
|
||||
std::string triple_string;
|
||||
std::string target_cpu = argv[1];
|
||||
if (target_cpu == "k8") {
|
||||
triple_string = "x86_64-none-linux-gnu";
|
||||
} else if (target_cpu == "darwin") {
|
||||
|
|
Loading…
Reference in New Issue