-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Apologies if I'm asking on the wrong place, because it's maybe more of a C++ inter-op question.
I'm trying to use llvm::Function
through LLVM_Utils
and/or LLVM_IR
. Xcode's auto-completion shows this, which is confusing to me:
Then, when I try to build it, I get this error:
'Function' is not a member type of enum '__ObjC.llvm'
In the swift-llvm-bindings source is this line:
Both Twine
and Function
are classes declared in the llvm
namespace. The only difference is the LLVM_EXTERNAL_VISIBILITY
macro for Function
, but it expands to just [[gnu::visibility("default")]]
on macOS.
Why does llvm.Twine
work, but not llvm.Function
? What should I do to make llvm.Function
work?
Metadata
Metadata
Assignees
Labels
No labels