mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-21 19:20:07 +00:00
Update proto JSON options call. (#5867)
This CL updates the usage of JsonOptions which is deprecated to the newer JsonPrintOptions.
This commit is contained in:
parent
5f1e86cb55
commit
e5c1498afa
@ -145,7 +145,7 @@ void DumpTransformationsJson(
|
||||
const protobufs::TransformationSequence& transformations,
|
||||
const char* filename) {
|
||||
std::string json_string;
|
||||
auto json_options = google::protobuf::util::JsonOptions();
|
||||
auto json_options = google::protobuf::util::JsonPrintOptions();
|
||||
json_options.add_whitespace = true;
|
||||
auto json_generation_status = google::protobuf::util::MessageToJsonString(
|
||||
transformations, &json_string, json_options);
|
||||
|
@ -672,7 +672,7 @@ void DumpTransformationsJson(
|
||||
const spvtools::fuzz::protobufs::TransformationSequence& transformations,
|
||||
const char* filename) {
|
||||
std::string json_string;
|
||||
auto json_options = google::protobuf::util::JsonOptions();
|
||||
auto json_options = google::protobuf::util::JsonPrintOptions();
|
||||
json_options.add_whitespace = true;
|
||||
auto json_generation_status = google::protobuf::util::MessageToJsonString(
|
||||
transformations, &json_string, json_options);
|
||||
@ -800,7 +800,7 @@ int main(int argc, const char** argv) {
|
||||
}
|
||||
|
||||
std::string json_string;
|
||||
auto json_options = google::protobuf::util::JsonOptions();
|
||||
auto json_options = google::protobuf::util::JsonPrintOptions();
|
||||
json_options.add_whitespace = true;
|
||||
auto json_generation_status = google::protobuf::util::MessageToJsonString(
|
||||
transformations_applied, &json_string, json_options);
|
||||
|
Loading…
Reference in New Issue
Block a user