summaryrefslogtreecommitdiffstats
path: root/source/core
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-03-02 12:30:25 -0500
committerGitHub <noreply@github.com>2020-03-02 12:30:25 -0500
commitb85ca6f86d46ee3c4d5784d0bd4ebc8509e2a9bd (patch)
treee91ce5470664cbd623374534e69e4bfc8a0f1840 /source/core
parent6e9f407ad42ce635528b30f21366f903903a3682 (diff)
Feature/profile tool (#1251)
* WIP slang-profile * Turn on symbols needed for profile. * Remove calls to slang API from core as doing so broke profiling information. Fix premake so slang-profile works on VS.
Diffstat (limited to 'source/core')
-rw-r--r--source/core/slang-std-writers.cpp8
-rw-r--r--source/core/slang-std-writers.h5
2 files changed, 1 insertions, 12 deletions
diff --git a/source/core/slang-std-writers.cpp b/source/core/slang-std-writers.cpp
index 8b2f6f604..bf3ae72fd 100644
--- a/source/core/slang-std-writers.cpp
+++ b/source/core/slang-std-writers.cpp
@@ -30,13 +30,5 @@ namespace Slang
return defaults;
}
-void StdWriters::setRequestWriters(SlangCompileRequest* request)
-{
- for (int i = 0; i < SLANG_WRITER_CHANNEL_COUNT_OF; ++i)
- {
- spSetWriter(request, SlangWriterChannel(i), m_writers[i]);
- }
-}
-
}
diff --git a/source/core/slang-std-writers.h b/source/core/slang-std-writers.h
index 8ecb89227..d193bfe0c 100644
--- a/source/core/slang-std-writers.h
+++ b/source/core/slang-std-writers.h
@@ -12,12 +12,9 @@ class StdWriters: public RefObject
{
public:
- ISlangWriter * getWriter(SlangWriterChannel chan) const { return m_writers[chan]; }
+ ISlangWriter* getWriter(SlangWriterChannel chan) const { return m_writers[chan]; }
void setWriter(SlangWriterChannel chan, ISlangWriter* writer) { m_writers[chan] = writer; }
- /// Set the writers on the SlangCompileRequest
- void setRequestWriters(SlangCompileRequest* request);
-
/// Ctor
StdWriters() {}