diff options
author | James Y Knight <jyknight@google.com> | 2019-01-13 16:09:28 +0000 |
---|---|---|
committer | James Y Knight <jyknight@google.com> | 2019-01-13 16:09:28 +0000 |
commit | c0044118c8ec4889ff1490179d5d70549cb7621c (patch) | |
tree | 603011e7fc7b0e9f30d4446f96262726a0addb37 /llvm/unittests/ExecutionEngine/Orc/IndirectionUtilsTest.cpp | |
parent | 06e3950561a5cd59b1295ed66071c8a53af8067a (diff) | |
download | bcm5719-llvm-c0044118c8ec4889ff1490179d5d70549cb7621c.tar.gz bcm5719-llvm-c0044118c8ec4889ff1490179d5d70549cb7621c.zip |
Remove TypeBuilder.h, and fix the few locations using it.
This shortcut mechanism for creating types was added 10 years ago, but
has seen almost no uptake since then, neither internally nor in
external projects.
The very small number of characters saved by using it does not seem
worth the mental overhead of an additional type-creation API, so,
delete it.
Differential Revision: https://reviews.llvm.org/D56573
llvm-svn: 351020
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc/IndirectionUtilsTest.cpp')
-rw-r--r-- | llvm/unittests/ExecutionEngine/Orc/IndirectionUtilsTest.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/IndirectionUtilsTest.cpp b/llvm/unittests/ExecutionEngine/Orc/IndirectionUtilsTest.cpp index ed425449784..1dfa0a1d492 100644 --- a/llvm/unittests/ExecutionEngine/Orc/IndirectionUtilsTest.cpp +++ b/llvm/unittests/ExecutionEngine/Orc/IndirectionUtilsTest.cpp @@ -19,7 +19,10 @@ namespace { TEST(IndirectionUtilsTest, MakeStub) { LLVMContext Context; ModuleBuilder MB(Context, "x86_64-apple-macosx10.10", ""); - Function *F = MB.createFunctionDecl<void(DummyStruct, DummyStruct)>(""); + FunctionType *FTy = FunctionType::get( + Type::getVoidTy(Context), + {getDummyStructTy(Context), getDummyStructTy(Context)}, false); + Function *F = MB.createFunctionDecl(FTy, ""); AttributeSet FnAttrs = AttributeSet::get( Context, AttrBuilder().addAttribute(Attribute::NoUnwind)); AttributeSet RetAttrs; // None |