Changes the JSON parser to use the SourceMgr.
authorManuel Klimek <klimek@google.com>
Wed, 21 Dec 2011 18:16:39 +0000 (18:16 +0000)
committerManuel Klimek <klimek@google.com>
Wed, 21 Dec 2011 18:16:39 +0000 (18:16 +0000)
commit84cbb6f00de84fa04012462a28a3636e13834401
treeca8fca2df705cb701ef77cea6028b1b3dcb14403
parentedae8e1e4d5bd9b59f18ecef04a248be95d8ca46
Changes the JSON parser to use the SourceMgr.

Diagnostics are now emitted via the SourceMgr and we use MemoryBuffer
for buffer management. Switched the code to make use of the trailing
'0' that MemoryBuffer guarantees where it makes sense.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147063 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/JSONParser.h
lib/Support/JSONParser.cpp
unittests/Support/JSONParserTest.cpp
utils/json-bench/JSONBench.cpp