mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
[lit] Format JSONMetricValue strings better.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226672 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bdcc4ec129
commit
b727b13f61
@ -91,7 +91,8 @@ class JSONMetricValue(MetricValue):
|
||||
self.value = value
|
||||
|
||||
def format(self):
|
||||
return str(self.value)
|
||||
e = JSONEncoder(indent=2, sort_keys=True)
|
||||
return e.encode(self.value)
|
||||
|
||||
def todata(self):
|
||||
return self.value
|
||||
|
Loading…
Reference in New Issue
Block a user