rL333307 was introduced to remove automatic target triple normalization when calling sys::getDefaultTargetTriple(), arguing that users of the latter already called Triple::normalize() if necessary. However, users of the C API currently have no way of doing target triple normalization. This patch introduces an LLVMNormalizeTargetTriple function to the C API which wraps Triple::normalize() and can be used on the result of LLVMGetDefaultTargetTriple to achieve the same effect.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
include/llvm-c/TargetMachine.h | ||
---|---|---|
142 ↗ | (On Diff #155814) | This should take a const char *. |
Comment Actions
Fixed the patch so that the LLVMNormalizeTargetTriple takes a const char* argument. Sorry about that.
Comment Actions
I do not have write access to the repository, can someone else land this?
Thanks again!