aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/tools/parser/hlo_lexer.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-05-02 18:52:02 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-05-02 18:55:37 -0700
commit223be4abe74592a781735a6b66e12cb0146f0830 (patch)
tree40171aa19e37c27169ec94e745354e8020107842 /tensorflow/compiler/xla/tools/parser/hlo_lexer.cc
parent2b1a03c2ad502329a1f2b1368a40913ef21e97a0 (diff)
Replaced calls to tensorflow::StringPiece::ToString with std::string conversions.
That is, instances of sp.ToString() are replaced with std::string(sp). This will allow tensorflow::StringPiece::ToString to be removed, which is necessary before it can be replaced with absl::string_view. PiperOrigin-RevId: 195188185
Diffstat (limited to 'tensorflow/compiler/xla/tools/parser/hlo_lexer.cc')
-rw-r--r--tensorflow/compiler/xla/tools/parser/hlo_lexer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/tools/parser/hlo_lexer.cc b/tensorflow/compiler/xla/tools/parser/hlo_lexer.cc
index fc0e444452..350db12653 100644
--- a/tensorflow/compiler/xla/tools/parser/hlo_lexer.cc
+++ b/tensorflow/compiler/xla/tools/parser/hlo_lexer.cc
@@ -230,7 +230,7 @@ TokKind HloLexer::LexIdentifier() {
}
}
- str_val_ = identifier.ToString();
+ str_val_ = std::string(identifier);
return TokKind::kIdent;
}