summaryrefslogtreecommitdiff
path: root/source/slang/options.cpp
diff options
context:
space:
mode:
authorTim Foley <tim.foley.is@gmail.com>2017-08-10 15:25:04 -0700
committerGitHub <noreply@github.com>2017-08-10 15:25:04 -0700
commitdb4079f7e3635a6a61b8725643b1d7ecf68b97d8 (patch)
tree224c16ad374c5ed533a497beeb75753e7ce2d771 /source/slang/options.cpp
parent6e4830f4d74adef0a47c6503d84dc114240fafa3 (diff)
parenta5a436c4783fb75a0d089a6483219c06db91f593 (diff)
Merge pull request #156 from tfoleyNV/source-file-cleanup
Make source location lightweight
Diffstat (limited to 'source/slang/options.cpp')
-rw-r--r--source/slang/options.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/slang/options.cpp b/source/slang/options.cpp
index 49f33f58d..a360695f2 100644
--- a/source/slang/options.cpp
+++ b/source/slang/options.cpp
@@ -596,7 +596,7 @@ struct OptionsParser
else if (rawOutputPaths.Count() > rawEntryPoints.Count())
{
requestImpl->mSink.diagnose(
- CodePosition(),
+ SourceLoc(),
Diagnostics::tooManyOutputPathsSpecified,
rawOutputPaths.Count(),
rawEntryPoints.Count());
@@ -611,7 +611,7 @@ struct OptionsParser
if (entryPoint.outputPathIndex < 0)
{
requestImpl->mSink.diagnose(
- CodePosition(),
+ SourceLoc(),
Diagnostics::noOutputPathSpecifiedForEntryPoint,
entryPoint.name);
@@ -639,7 +639,7 @@ struct OptionsParser
// This file didn't imply a target, and that
// needs to be an error:
requestImpl->mSink.diagnose(
- CodePosition(),
+ SourceLoc(),
Diagnostics::cannotDeduceOutputFormatFromPath,
rawOutputPath.path);
@@ -669,7 +669,7 @@ struct OptionsParser
// This file didn't imply a target, and that
// needs to be an error:
requestImpl->mSink.diagnose(
- CodePosition(),
+ SourceLoc(),
Diagnostics::outputPathsImplyDifferentFormats,
rawOutputPaths[0].path,
rawOutputPath.path);