diff options
author | whitequark <whitequark@whitequark.org> | 2018-07-17 10:57:39 +0000 |
---|---|---|
committer | whitequark <whitequark@whitequark.org> | 2018-07-17 10:57:39 +0000 |
commit | 7c4a074505ca4c74685cbce6558fddf04ccbe036 (patch) | |
tree | 323ab8d28e490defa1604b8c88446f6bf4b1351b /llvm/lib/Support/SourceMgr.cpp | |
parent | e6dac13bab9908d63322249ca117633e412ad2c1 (diff) | |
download | llvm-7c4a074505ca4c74685cbce6558fddf04ccbe036.zip llvm-7c4a074505ca4c74685cbce6558fddf04ccbe036.tar.gz llvm-7c4a074505ca4c74685cbce6558fddf04ccbe036.tar.bz2 |
[LLVM-C] Add target triple normalization to the C API.
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.
Differential Revision: https://reviews.llvm.org/D49414
Reviewed By: whitequark
llvm-svn: 337263
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
0 files changed, 0 insertions, 0 deletions