X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FllvmGen%2FLlvm%2FTypes.hs;h=3637c864673ebd74f51c01f2ee3960ed3bc7cc1e;hb=86add45dbfb6f962b65e371143dd467ae783f9e7;hp=0a4fff2807e9a9c77910c95b68f966c162f1b8cf;hpb=e553a60151dc282c8b8c201871212cba0c3bf2a0;p=ghc-hetmet.git diff --git a/compiler/llvmGen/Llvm/Types.hs b/compiler/llvmGen/Llvm/Types.hs index 0a4fff2..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 @@ -70,7 +69,7 @@ instance Show LlvmType where show (LMAlias (s,_)) = "%" ++ unpackFS s --- | An LLVM section defenition. If Nothing then let LLVM decide the section +-- | An LLVM section definition. If Nothing then let LLVM decide the section type LMSection = Maybe LMString type LMAlign = Maybe Int type LMConst = Bool -- ^ is a variable constant or not @@ -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