diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-10-09 14:24:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-09 14:24:00 -0400 |
| commit | 9a09e2ed2c06ac5532488c418badec98ef362ca9 (patch) | |
| tree | e7a73d951ab81187c73aa25cf5c3f7c9d3980538 /source/slang/slang-lower-to-ir.cpp | |
| parent | 0b61643bf82e2dd44317f6ff83b1a088e337610f (diff) | |
Feature/decor entry point name (#1073)
* Use name hint on EntryPoint naming.
* Placed the entry point name on the EntryPointDecoration.
Diffstat (limited to 'source/slang/slang-lower-to-ir.cpp')
| -rw-r--r-- | source/slang/slang-lower-to-ir.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/slang/slang-lower-to-ir.cpp b/source/slang/slang-lower-to-ir.cpp index 08b8cb1bd..50ac6948b 100644 --- a/source/slang/slang-lower-to-ir.cpp +++ b/source/slang/slang-lower-to-ir.cpp @@ -6338,7 +6338,11 @@ static void lowerFrontEndEntryPointToIR( { instToDecorate = findGenericReturnVal(irGeneric); } - builder->addEntryPointDecoration(instToDecorate, entryPoint->getProfile()); + + { + Name* entryPointName = entryPoint->getFuncDecl()->getName(); + builder->addEntryPointDecoration(instToDecorate, entryPoint->getProfile(), entryPointName->text.getUnownedSlice()); + } // Go through the entry point parameters creating decorations from layout as appropriate { |
