summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2014-02-12 19:12:37 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2014-02-12 19:12:37 +0000
commitea4d1c32fb9681b093461e03fc098f8f29f71b5b (patch)
treeffc026456ec5ef9cd5fd464247a7528d967074f6 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent2039d446034b332c2ce9238924f74a1c2304014f (diff)
downloadbcm5719-llvm-ea4d1c32fb9681b093461e03fc098f8f29f71b5b.tar.gz
bcm5719-llvm-ea4d1c32fb9681b093461e03fc098f8f29f71b5b.zip
libclang: report error code for bad PCH files
This commit improves libclang to report the error condition when CXTranslationUnit can not be created because of a stale PCH file. This allows the caller, for example, to rebuild the PCH file and retry the request. There two are APIs in libclang that return a CXTranslationUnit and don't support reporting detailed errors (the only error condition is a NULL result). For these APIs, a second, superior, version is introduced -- clang_createTranslationUnit2 and clang_parseTranslationUnit2. These functions return a CXTranslationUnit indirectly and also return an error code. Old functions are still supported and are nothing more than convenience wrappers that ignore extended error codes. As a cleanup, this commit also categorizes some libclang errors in the functions I had to modify anyway. llvm-svn: 201249
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud