summaryrefslogtreecommitdiffstats
path: root/source/slang/compiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/compiler.cpp')
-rw-r--r--source/slang/compiler.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/slang/compiler.cpp b/source/slang/compiler.cpp
index 29f7a95d9..c93f3f70c 100644
--- a/source/slang/compiler.cpp
+++ b/source/slang/compiler.cpp
@@ -127,6 +127,17 @@ namespace Slang
return compileRequest->translationUnits[translationUnitIndex].Ptr();
}
+ DeclRef<FuncDecl> EntryPointRequest::getFuncDeclRef()
+ {
+ return funcDeclRef;
+ }
+
+ RefPtr<FuncDecl> EntryPointRequest::getFuncDecl()
+ {
+ return getFuncDeclRef().getDecl();
+ }
+
+
//
Profile Profile::LookUp(char const* name)