OSDN Git Service

[Support] Add a free toString function for Error
authorVedant Kumar <vsk@apple.com>
Tue, 3 May 2016 23:32:31 +0000 (23:32 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 3 May 2016 23:32:31 +0000 (23:32 +0000)
commit7212e1ee9696659a1097ca9e65b1f5f4d3612fce
tree6cf7235f384315307f7b50a1bd907c4a7ec55a1e
parentde24f13da32b382417230b35a6fd8dd57dd97b9e
[Support] Add a free toString function for Error

toString() consumes an Error and returns a string representation of its
contents. This commit also adds a message() method to ErrorInfoBase for
convenience.

Differential Revision: http://reviews.llvm.org/D19883

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268465 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Error.h
unittests/Support/ErrorTest.cpp