1 //===-- TraceOptions.cpp ----------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include "lldb/Utility/TraceOptions.h"
10 
11 using namespace lldb_private;
12 
13 namespace llvm {
14 namespace json {
15 
fromJSON(const Value & value,TraceTypeInfo & info,Path path)16 bool fromJSON(const Value &value, TraceTypeInfo &info, Path path) {
17   ObjectMapper o(value, path);
18   if (!o)
19     return false;
20   o.map("description", info.description);
21   return o.map("name", info.name);
22 }
23 
24 } // namespace json
25 } // namespace llvm
26