[PATCH] D35180: Expose the Clang::QualType to llvm::Type conversion functions

2017-07-09 Thread Benoit Vey via Phabricator via cfe-commits
Praetonus created this revision. This change exposes the various CodeGenTypes::ConvertType functions in the public Clang API. This allows external tools using the Clang API to rely on it to generate LLVM types from C types. The precise use case that motivated this change is explained in an emai

[PATCH] D35180: Expose the Clang::QualType to llvm::Type conversion functions

2017-07-09 Thread Benoit Vey via Phabricator via cfe-commits
Praetonus updated this revision to Diff 105793. Praetonus added a comment. Patch updated based on @rjmccall's comments. I removed the wrapper for the ConvertType function, after giving it some thoughts I don't see any use case for it, I guess I added it by default. I left the convertFreeFunction

[PATCH] D35180: Expose the Clang::QualType to llvm::Type conversion functions

2017-07-09 Thread Benoit Vey via Phabricator via cfe-commits
Praetonus updated this revision to Diff 105795. Praetonus marked 3 inline comments as done. Praetonus added a comment. Patch updated. I've made the convertFreeFunctionType return null on failure. https://reviews.llvm.org/D35180 Files: include/clang/CodeGen/CodeGenABITypes.h lib/CodeGen/Code

[PATCH] D35180: Expose the Clang::QualType to llvm::Type conversion functions

2017-07-09 Thread Benoit Vey via Phabricator via cfe-commits
Praetonus updated this revision to Diff 105803. Praetonus added a comment. Patch updated to adhere to the coding style based on @majnemer's comments. https://reviews.llvm.org/D35180 Files: include/clang/CodeGen/CodeGenABITypes.h lib/CodeGen/CodeGenABITypes.cpp Index: lib/CodeGen/CodeGenAB

[PATCH] D35180: Expose the Clang::QualType to llvm::Type conversion functions

2017-07-11 Thread Benoit Vey via Phabricator via cfe-commits
Praetonus added a comment. I forgot to mention that I don't have commit access. If you or somebody else could commit this it would be great. https://reviews.llvm.org/D35180 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.o