diff options
| author | Richard Lin | 2017-12-19 16:17:22 -0800 |
|---|---|---|
| committer | GitHub | 2017-12-19 16:17:22 -0800 |
| commit | d67914ffd4b983903f777c5c033ce84fbdb561f1 (patch) | |
| tree | 613b65aa76fd950058cf393a14edeaa16164de8e /coreMacros/src/main | |
| parent | 9f504b9926d38d11fb8003c72360ff11d24b5ef6 (diff) | |
Add source info / compile options transforms to Mem accessors (#744)
Fixes #708
Diffstat (limited to 'coreMacros/src/main')
| -rw-r--r-- | coreMacros/src/main/scala/chisel3/internal/sourceinfo/SourceInfoTransform.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/coreMacros/src/main/scala/chisel3/internal/sourceinfo/SourceInfoTransform.scala b/coreMacros/src/main/scala/chisel3/internal/sourceinfo/SourceInfoTransform.scala index b7d40901..47c77c98 100644 --- a/coreMacros/src/main/scala/chisel3/internal/sourceinfo/SourceInfoTransform.scala +++ b/coreMacros/src/main/scala/chisel3/internal/sourceinfo/SourceInfoTransform.scala @@ -123,6 +123,10 @@ class SourceInfoTransform(val c: Context) extends AutoSourceTransform { def xyArg(x: c.Tree, y: c.Tree): c.Tree = { q"$thisObj.$doFuncTerm($x, $y)($implicitSourceInfo, $implicitCompileOptions)" } + + def xEnArg(x: c.Tree, en: c.Tree): c.Tree = { + q"$thisObj.$doFuncTerm($x, $en)($implicitSourceInfo, $implicitCompileOptions)" + } } class CompileOptionsTransform(val c: Context) extends AutoSourceTransform { |
