diff options
Diffstat (limited to 'source/slang/slang-ir-dll-export.cpp')
| -rw-r--r-- | source/slang/slang-ir-dll-export.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/source/slang/slang-ir-dll-export.cpp b/source/slang/slang-ir-dll-export.cpp index af5f70eb3..a78889bed 100644 --- a/source/slang/slang-ir-dll-export.cpp +++ b/source/slang/slang-ir-dll-export.cpp @@ -1,10 +1,10 @@ // slang-ir-dll-export.cpp #include "slang-ir-dll-export.h" -#include "slang-ir.h" #include "slang-ir-insts.h" #include "slang-ir-marshal-native-call.h" #include "slang-ir-util.h" +#include "slang-ir.h" namespace Slang { @@ -32,20 +32,23 @@ struct DllExportContext void processModule() { - struct Candidate { IRFunc* func; IRDllExportDecoration* exportDecoration; }; + struct Candidate + { + IRFunc* func; + IRDllExportDecoration* exportDecoration; + }; List<Candidate> candidates; for (auto childFunc : module->getGlobalInsts()) { - switch(childFunc->getOp()) + switch (childFunc->getOp()) { case kIROp_Func: if (auto dllExportDecoration = childFunc->findDecoration<IRDllExportDecoration>()) { - candidates.add(Candidate{ as<IRFunc>(childFunc), dllExportDecoration }); + candidates.add(Candidate{as<IRFunc>(childFunc), dllExportDecoration}); } break; - default: - break; + default: break; } } @@ -64,4 +67,4 @@ void generateDllExportFuncs(IRModule* module, DiagnosticSink* sink) return context.processModule(); } -} +} // namespace Slang |
