summaryrefslogtreecommitdiffstats
path: root/tests/hlsl/dxsdk/Direct3D11Tutorials/Tutorial02
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2018-03-29 11:57:57 -0700
committerGitHub <noreply@github.com>2018-03-29 11:57:57 -0700
commit8c50f9f2d51ffd77903b742993dae6a663b38286 (patch)
tree6eaad44e6c7440f4434f8bab2d9d478be8f5110a /tests/hlsl/dxsdk/Direct3D11Tutorials/Tutorial02
parentb4c4dc92c0b21f0253c4ccf34107638f7c36b62e (diff)
Make IR-based output code cleaner (#458)
The big change here is that rather than trying to reproduce the exact line number and indentation of names as they appeared in the original code (which had been appropriate for the AST-to-AST translation strategy), we now emit code from the IR using a simple "pretty-printing" strategy, where indentation is determined by nesting. Along the way I deleted a bunch of dead code in `emit.cpp` that was handling emit from AST declarations/statements/expressions. I probably should have pulled that out into its own change, but doing that now would be tricky. This change also makes it so that we do *not* emit `#line` directives by default. Asking for `#line` directives in the output will probably become part of a Slang "debug mode" that tries to make the output code suitable for step-through debugging.
Diffstat (limited to 'tests/hlsl/dxsdk/Direct3D11Tutorials/Tutorial02')
0 files changed, 0 insertions, 0 deletions