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 stream_executor {
|
||||||
namespace interpreter {
|
namespace interpreter {
|
||||||
|
|
||||||
XlaInterpreterPlatform::XlaInterpreterPlatform(const string& name,
|
XlaInterpreterPlatform::XlaInterpreterPlatform(const std::string& name,
|
||||||
const Platform::Id& id)
|
const Platform::Id& id)
|
||||||
: name_(name), id_(id) {}
|
: name_(name), id_(id) {}
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ Platform::Id XlaInterpreterPlatform::id() const { return id_; }
|
||||||
|
|
||||||
int XlaInterpreterPlatform::VisibleDeviceCount() const { return 1; }
|
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>>
|
port::StatusOr<std::unique_ptr<DeviceDescription>>
|
||||||
XlaInterpreterPlatform::DescriptionForDevice(int ordinal) const {
|
XlaInterpreterPlatform::DescriptionForDevice(int ordinal) const {
|
||||||
|
|
|
@ -31,14 +31,14 @@ class XlaInterpreterPlatform : public Platform {
|
||||||
public:
|
public:
|
||||||
XlaInterpreterPlatform()
|
XlaInterpreterPlatform()
|
||||||
: XlaInterpreterPlatform("Interpreter", kXlaInterpreterPlatformId) {}
|
: XlaInterpreterPlatform("Interpreter", kXlaInterpreterPlatformId) {}
|
||||||
XlaInterpreterPlatform(const string& name, const Platform::Id& id);
|
XlaInterpreterPlatform(const std::string& name, const Platform::Id& id);
|
||||||
~XlaInterpreterPlatform() override;
|
~XlaInterpreterPlatform() override;
|
||||||
|
|
||||||
Platform::Id id() const override;
|
Platform::Id id() const override;
|
||||||
|
|
||||||
int VisibleDeviceCount() const override;
|
int VisibleDeviceCount() const override;
|
||||||
|
|
||||||
const string& Name() const override;
|
const std::string& Name() const override;
|
||||||
|
|
||||||
port::StatusOr<std::unique_ptr<DeviceDescription>> DescriptionForDevice(
|
port::StatusOr<std::unique_ptr<DeviceDescription>> DescriptionForDevice(
|
||||||
int ordinal) const override;
|
int ordinal) const override;
|
||||||
|
@ -60,7 +60,7 @@ class XlaInterpreterPlatform : public Platform {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// This platform's name.
|
// This platform's name.
|
||||||
string name_;
|
std::string name_;
|
||||||
// This platform's id.
|
// This platform's id.
|
||||||
Platform::Id id_;
|
Platform::Id id_;
|
||||||
|
|
||||||
|
|
|
@ -60,8 +60,8 @@ int main(int argc, char** argv) {
|
||||||
LOG(FATAL) << "local_client_aot_test_helper TARGET_CPU";
|
LOG(FATAL) << "local_client_aot_test_helper TARGET_CPU";
|
||||||
}
|
}
|
||||||
|
|
||||||
string triple_string;
|
std::string triple_string;
|
||||||
string target_cpu = argv[1];
|
std::string target_cpu = argv[1];
|
||||||
if (target_cpu == "k8") {
|
if (target_cpu == "k8") {
|
||||||
triple_string = "x86_64-none-linux-gnu";
|
triple_string = "x86_64-none-linux-gnu";
|
||||||
} else if (target_cpu == "darwin") {
|
} else if (target_cpu == "darwin") {
|
||||||
|
|
Loading…
Reference in New Issue