True is the default (and only possible) value.
if (error(BufferOrErr.getError(), Filename))
return SymbolList;
- // Always enable opaque pointers, to handle archives with mixed typed and
- // opaque pointer bitcode files gracefully. As we're only reading symbols,
- // the used pointer types don't matter.
LLVMContext Context;
- Context.setOpaquePointers(true);
LLVMContext *ContextPtr = NoLLVMBitcode ? nullptr : &Context;
Expected<std::unique_ptr<Binary>> BinaryOrErr =
createBinary(BufferOrErr.get()->getMemBufferRef(), ContextPtr);
public:
BasicAATest()
- : M("BasicAATest", C), B(C), DL(DLString), TLI(TLII), F(nullptr) {
- C.setOpaquePointers(true);
- }
+ : M("BasicAATest", C), B(C), DL(DLString), TLI(TLII), F(nullptr) {}
};
// Check that a function arg can't trivially alias a global when we're accessing
class OpenMPIRBuilderTest : public testing::Test {
protected:
void SetUp() override {
- Ctx.setOpaquePointers(true);
M.reset(new Module("MyModule", Ctx));
FunctionType *FTy =
FunctionType::get(Type::getVoidTy(Ctx), {Type::getInt32Ty(Ctx)},