From 79ec0cfdb5f3461c763e0bf712cf42eb87fccb90 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 10 Dec 2019 10:02:19 -0500 Subject: DownstreamCompiler abstraction (#1149) * CPPCompiler -> DownstreamCompiler * Added DownstreamCompileResult to start abstraction such that we don't need files. * * Split out slang-blob.cpp * Made CompileResult hold a DownstreamCompileResult - for access to binary or ISlangSharedLibrary * Keep temporary files in scope. * Add a hash to the hex dump stream. * Move all file tracking into DownstreamCompiler. --- source/core/slang-string-util.h | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'source/core/slang-string-util.h') diff --git a/source/core/slang-string-util.h b/source/core/slang-string-util.h index 77b7ca2a3..16588bd35 100644 --- a/source/core/slang-string-util.h +++ b/source/core/slang-string-util.h @@ -11,30 +11,6 @@ namespace Slang { -/** A blob that uses a `String` for its storage. -*/ -class StringBlob : public ISlangBlob, public RefObject -{ -public: - // ISlangUnknown - SLANG_REF_OBJECT_IUNKNOWN_ALL - - // ISlangBlob - SLANG_NO_THROW void const* SLANG_MCALL getBufferPointer() SLANG_OVERRIDE { return m_string.getBuffer(); } - SLANG_NO_THROW size_t SLANG_MCALL getBufferSize() SLANG_OVERRIDE { return m_string.getLength(); } - - /// Get the contained string - SLANG_FORCE_INLINE const String& getString() const { return m_string; } - - explicit StringBlob(String const& string) - : m_string(string) - {} - -protected: - ISlangUnknown* getInterface(const Guid& guid); - String m_string; -}; - struct StringUtil { /// Split in, by specified splitChar into slices out -- cgit v1.2.3