X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FllvmGen%2FLlvm%2FTypes.hs;h=3637c864673ebd74f51c01f2ee3960ed3bc7cc1e;hb=cbd7463c986d54422de15cb3b56184de116ef7ba;hp=e14dcce8cb5b59f0e829c8fd556959fa2c8ba103;hpb=770f05e6d160874d607e3f2bbc57912319f2a104;p=ghc-hetmet.git diff --git a/compiler/llvmGen/Llvm/Types.hs b/compiler/llvmGen/Llvm/Types.hs index e14dcce..3637c86 100644 --- a/compiler/llvmGen/Llvm/Types.hs +++ b/compiler/llvmGen/Llvm/Types.hs @@ -5,7 +5,6 @@ module Llvm.Types where #include "HsVersions.h" -#include "ghcconfig.h" import Data.Char import Numeric @@ -201,7 +200,8 @@ getName v@(LMLitVar _ ) = getPlainName v -- in a plain textual representation (e.g. @x@, @y@ or @42@). getPlainName :: LlvmVar -> String 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 (LMLitVar x ) = getLit x