Skip to content

Commit ca05ca9

Browse files
committed
Guard 8e55e33 within Marco
1 parent 6414c5f commit ca05ca9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/tools/llvm-nm/llvm-nm.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,6 +2263,12 @@ static std::vector<NMSymbol> dumpSymbolNamesFromFile(StringRef Filename) {
22632263
return SymbolList;
22642264

22652265
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
22662272
LLVMContext *ContextPtr = NoLLVMBitcode ? nullptr : &Context;
22672273
Expected<std::unique_ptr<Binary>> BinaryOrErr =
22682274
createBinary(BufferOrErr.get()->getMemBufferRef(), ContextPtr);

0 commit comments

Comments
 (0)