We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6414c5f commit ca05ca9Copy full SHA for ca05ca9
llvm/tools/llvm-nm/llvm-nm.cpp
@@ -2263,6 +2263,12 @@ static std::vector<NMSymbol> dumpSymbolNamesFromFile(StringRef Filename) {
2263
return SymbolList;
2264
2265
LLVMContext Context;
2266
+#ifndef INTEL_SYCL_OPAQUEPOINTER_READY
2267
+ // Always enable opaque pointers, to handle archives with mixed typed and
2268
+ // opaque pointer bitcode files gracefully. As we're only reading symbols,
2269
+ // the used pointer types don't matter.
2270
+ Context.setOpaquePointers(true);
2271
+#endif // INTEL_SYCL_OPAQUEPOINTER_READY
2272
LLVMContext *ContextPtr = NoLLVMBitcode ? nullptr : &Context;
2273
Expected<std::unique_ptr<Binary>> BinaryOrErr =
2274
createBinary(BufferOrErr.get()->getMemBufferRef(), ContextPtr);
0 commit comments