Commit 4040304d authored by dterei's avatar dterei
Browse files

LLVM: Fix printing of local vars so LLVM works with -fnew-codegen

parent ed301949
...@@ -200,7 +200,8 @@ getName v@(LMLitVar _ ) = getPlainName v ...@@ -200,7 +200,8 @@ getName v@(LMLitVar _ ) = getPlainName v
-- in a plain textual representation (e.g. @x@, @y@ or @42@). -- in a plain textual representation (e.g. @x@, @y@ or @42@).
getPlainName :: LlvmVar -> String getPlainName :: LlvmVar -> String
getPlainName (LMGlobalVar x _ _ _ _ _) = unpackFS x getPlainName (LMGlobalVar x _ _ _ _ _) = unpackFS x
getPlainName (LMLocalVar x _ ) = show x getPlainName (LMLocalVar x LMLabel ) = show x
getPlainName (LMLocalVar x _ ) = "l" ++ show x
getPlainName (LMNLocalVar x _ ) = unpackFS x getPlainName (LMNLocalVar x _ ) = unpackFS x
getPlainName (LMLitVar x ) = getLit x getPlainName (LMLitVar x ) = getLit x
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment