show function id should just be a basic identifier
authorchristiaanb <christiaan.baaij@gmail.com>
Wed, 23 Jun 2010 10:02:12 +0000 (12:02 +0200)
committerchristiaanb <christiaan.baaij@gmail.com>
Wed, 23 Jun 2010 10:02:12 +0000 (12:02 +0200)
clash/CLasH/VHDL/Constants.hs
clash/CLasH/VHDL/VHDLTools.hs

index 4267e2eef46d92edb45e3638735d0514af798101..980dcd10cd7ccc8ca3d8671c25bdad6fe90a7ac5 100644 (file)
@@ -353,7 +353,7 @@ showIdString :: String
 showIdString = "show"
 
 showId :: AST.VHDLId
-showId = AST.unsafeVHDLExtId showIdString
+showId = AST.unsafeVHDLBasicId showIdString
 
 -- | write function identifier (from std.textio)
 writeId :: AST.VHDLId
index f04c1dcfb01af46e6187f6e3cf390184b3a94122..bc5f497038f6e7b8167135899d1644d4db85b611 100644 (file)
@@ -723,7 +723,7 @@ mkVectorShow elemTM vectorTM =
                                                              AST.:-: AST.PrimLit "1"))
     tailRet = AST.ReturnSm (Just $ AST.PrimName $ AST.NSimple resId)
     showSpec  = AST.Function showId [AST.IfaceVarDec vecPar vectorTM, AST.IfaceVarDec parenPar booleanTM] stringTM
-    doShowId  = AST.unsafeVHDLExtId "doshow"
+    doShowId  = AST.unsafeVHDLBasicId "doshow"
     doShowDef = AST.SubProgBody doShowSpec [] [doShowRet]
       where doShowSpec = AST.Function doShowId [AST.IfaceVarDec vecPar vectorTM] 
                                            stringTM