File tree 1 file changed +7
-1
lines changed 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,12 @@ static cl::opt<bool>
153
153
SPIRVToolsDis (" spirv-tools-dis" , cl::init(false ),
154
154
cl::desc(" Emit textual assembly using SPIRV-Tools" ));
155
155
156
+ static cl::opt<bool >
157
+ EmitOpaquePointers (" emit-opaque-pointers" , cl::init(false ),
158
+ cl::desc(" Emit opaque instead of typed LLVM pointers "
159
+ " for the translation from SPIR-V." ),
160
+ cl::Hidden);
161
+
156
162
using SPIRV::ExtensionID;
157
163
158
164
#ifdef _SPIRV_SUPPORT_TEXT_FMT
@@ -344,7 +350,7 @@ static bool isFileEmpty(const std::string &FileName) {
344
350
345
351
static int convertSPIRVToLLVM (const SPIRV::TranslatorOpts &Opts) {
346
352
LLVMContext Context;
347
- Context.setOpaquePointers (false );
353
+ Context.setOpaquePointers (EmitOpaquePointers );
348
354
349
355
std::ifstream IFS (InputFile, std::ios::binary);
350
356
Module *M;
You can’t perform that action at this time.
0 commit comments