diff options
author | whitequark <whitequark@whitequark.org> | 2017-10-27 11:51:40 +0000 |
---|---|---|
committer | whitequark <whitequark@whitequark.org> | 2017-10-27 11:51:40 +0000 |
commit | a129dc8bcf535f2d5ba0f80a7280d16c88e69e95 (patch) | |
tree | e826f49ecbb280861e82cd35ac3445be2c9a294e /tools/llvm-c-test | |
parent | ed00729d34b5802b51cf4bf8168a5be78d56e62a (diff) |
[LLVM-C] Publicly expose getters of MetadataType, TokenType
Patch by Robert Widmann.
Expose getters for MetadataType and TokenType publicly in the C API.
Discovered a need for these while trying to wrap the intrinsics API.
Differential Revision: https://reviews.llvm.org/D38809
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-c-test')
-rw-r--r-- | tools/llvm-c-test/echo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-c-test/echo.cpp b/tools/llvm-c-test/echo.cpp index 966c0083bf8..885f9c0d899 100644 --- a/tools/llvm-c-test/echo.cpp +++ b/tools/llvm-c-test/echo.cpp @@ -142,7 +142,7 @@ struct TypeCloner { LLVMGetVectorSize(Src) ); case LLVMMetadataTypeKind: - break; + return LLVMMetadataTypeInContext(Ctx); case LLVMX86_MMXTypeKind: return LLVMX86MMXTypeInContext(Ctx); default: |