From d67914ffd4b983903f777c5c033ce84fbdb561f1 Mon Sep 17 00:00:00 2001 From: Richard Lin Date: Tue, 19 Dec 2017 16:17:22 -0800 Subject: Add source info / compile options transforms to Mem accessors (#744) Fixes #708--- .../main/scala/chisel3/internal/sourceinfo/SourceInfoTransform.scala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'coreMacros/src') 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 { -- cgit v1.2.3