Skip to content

Commit 1ca02a2

Browse files
committed
Remove trailing white spaces and tabs
Generated with: find . -type f -and -not \( -name "*.o" -or -name "*.exe" -or -name "*.hi" \) \ | grep -Ev "\.git/|dist/" | xargs -n1 sed -e 's/[ \t]*$//' -i
1 parent 73e3281 commit 1ca02a2

File tree

18 files changed

+65
-66
lines changed

18 files changed

+65
-66
lines changed

LLVM/Core.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module LLVM.Core(
6666
Linkage(..),
6767
-- * Basic blocks
6868
BasicBlock, newBasicBlock, newNamedBasicBlock, defineBasicBlock, createBasicBlock, createNamedBasicBlock, getCurrentBasicBlock,
69-
getBasicBlocks,
69+
getBasicBlocks,
7070
fromLabel, toLabel,
7171
getInstructions, getOperands, hasUsers, getUsers, getUses, getUser, isChildOf, getDep,
7272
-- * Misc

LLVM/Core/CodeGen.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ type FA a = CodeGenFunction a ()
265265
instance FunctionArgs (IO Float) (FA Float) Float where apArgs _ _ g = g
266266
instance FunctionArgs (IO Double) (FA Double) Double where apArgs _ _ g = g
267267
instance FunctionArgs (IO FP128) (FA FP128) FP128 where apArgs _ _ g = g
268-
instance (Pos n) =>
268+
instance (Pos n) =>
269269
FunctionArgs (IO (IntN n)) (FA (IntN n)) (IntN n) where apArgs _ _ g = g
270270
instance (Pos n) =>
271271
FunctionArgs (IO (WordN n)) (FA (WordN n)) (WordN n) where apArgs _ _ g = g
@@ -283,7 +283,7 @@ instance (Pos n, IsPrimitive a) =>
283283
FunctionArgs (IO (Vector n a)) (FA (Vector n a)) (Vector n a) where apArgs _ _ g = g
284284
instance StructFields as =>
285285
FunctionArgs (IO (Struct as)) (FA (Struct as)) (Struct as) where apArgs _ _ g = g
286-
instance (IsType a) =>
286+
instance (IsType a) =>
287287
FunctionArgs (IO (Ptr a)) (FA (Ptr a)) (Ptr a) where apArgs _ _ g = g
288288
instance FunctionArgs (IO (StablePtr a)) (FA (StablePtr a)) (StablePtr a) where apArgs _ _ g = g
289289

LLVM/Core/CodeGenMonad.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ runCodeGenModule m (CGM body) = do
4545

4646
--------------------------------------
4747

48-
data CGFState r = CGFState {
48+
data CGFState r = CGFState {
4949
cgf_module :: CGMState,
5050
cgf_builder :: Builder,
5151
cgf_function :: Function,

LLVM/Core/Util.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ readBitcodeFromFile name =
129129
ptr <- peek modPtr
130130
return $ Module ptr
131131

132-
132+
133133
{-
134134
liftM Module $ newForeignPtr FFI.ptrDisposeModule ptr
135135
-}
@@ -454,7 +454,7 @@ getObjList :: (t1 -> (t2 -> IO [Ptr a]) -> t) -> (t2 -> IO (Ptr a))
454454
-> (Ptr a -> IO (Ptr a)) -> t1 -> t
455455
getObjList withF firstF nextF obj = do
456456
withF obj $ \ objPtr -> do
457-
ofst <- firstF objPtr
457+
ofst <- firstF objPtr
458458
let oloop p = if p == nullPtr then return [] else do
459459
n <- nextF p
460460
ps <- oloop n

LLVM/ExecutionEngine/Engine.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ withAll :: [GenericValue] -> (Int -> Ptr FFI.GenericValueRef -> IO a) -> IO a
222222
withAll ps a = go [] ps
223223
where go ptrs (x:xs) = withGenericValue x $ \ptr -> go (ptr:ptrs) xs
224224
go ptrs _ = withArrayLen (reverse ptrs) a
225-
225+
226226
runFunction :: U.Function -> [GenericValue] -> EngineAccess GenericValue
227227
runFunction func args = do
228228
eePtr <- gets ea_engine
@@ -232,7 +232,7 @@ runFunction func args = do
232232
getRunFunction :: EngineAccess (U.Function -> [GenericValue] -> IO GenericValue)
233233
getRunFunction = do
234234
eePtr <- gets ea_engine
235-
return $ \ func args ->
235+
return $ \ func args ->
236236
withAll args $ \argLen argPtr ->
237237
createGenericValueWith $ FFI.runFunction eePtr func
238238
(fromIntegral argLen) argPtr

base/LLVM/FFI/Core.hsc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ module LLVM.FFI.Core
135135
, setSection
136136
, getAlignment
137137
, setAlignment
138-
138+
139139
-- ** Global variables
140140
, addGlobal
141141
, getNamedGlobal
@@ -838,7 +838,7 @@ foreign import ccall unsafe "LLVMIsDeclaration" isDeclaration
838838
-- |An enumeration for the kinds of linkage for global values.
839839
data Linkage
840840
= ExternalLinkage -- ^Externally visible function
841-
| AvailableExternallyLinkage
841+
| AvailableExternallyLinkage
842842
| LinkOnceAnyLinkage -- ^Keep one copy of function when linking (inline)
843843
| LinkOnceODRLinkage -- ^Same, but only replaced by something equivalent.
844844
| WeakAnyLinkage -- ^Keep one copy of named function when linking (weak)
@@ -849,7 +849,7 @@ data Linkage
849849
| DLLImportLinkage -- ^Function to be imported from DLL
850850
| DLLExportLinkage -- ^Function to be accessible from DLL
851851
| ExternalWeakLinkage -- ^ExternalWeak linkage description
852-
| GhostLinkage -- ^Stand-in functions for streaming fns from BC files
852+
| GhostLinkage -- ^Stand-in functions for streaming fns from BC files
853853
| CommonLinkage -- ^Tentative definitions
854854
| LinkerPrivateLinkage -- ^Like Private, but linker removes.
855855
deriving (Show, Eq, Ord, Enum, Typeable)
@@ -873,7 +873,7 @@ fromLinkage LinkerPrivateLinkage = (#const LLVMLinkerPrivateLinkage)
873873

874874
toLinkage :: CUInt -> Linkage
875875
toLinkage c | c == (#const LLVMExternalLinkage) = ExternalLinkage
876-
toLinkage c | c == (#const LLVMAvailableExternallyLinkage) = AvailableExternallyLinkage
876+
toLinkage c | c == (#const LLVMAvailableExternallyLinkage) = AvailableExternallyLinkage
877877
toLinkage c | c == (#const LLVMLinkOnceAnyLinkage) = LinkOnceAnyLinkage
878878
toLinkage c | c == (#const LLVMLinkOnceODRLinkage) = LinkOnceODRLinkage
879879
toLinkage c | c == (#const LLVMWeakAnyLinkage) = WeakAnyLinkage
@@ -1316,7 +1316,7 @@ foreign import ccall unsafe "LLVMGetIncomingValue" getIncomingValue
13161316
:: ValueRef -> CUInt -> IO ValueRef
13171317
foreign import ccall unsafe "LLVMGetIncomingBlock" getIncomingBlock
13181318
:: ValueRef -> CUInt -> IO BasicBlockRef
1319-
1319+
13201320
foreign import ccall unsafe "LLVMGetInstructionCallConv" getInstructionCallConv
13211321
:: ValueRef -> IO CUInt
13221322
foreign import ccall unsafe "LLVMSetInstructionCallConv" setInstructionCallConv

base/LLVM/FFI/Support.hsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ foreign import ccall unsafe "LLVMCreateStandardModulePasses" createStandardModul
2626

2727
#if HS_LLVM_VERSION >= 300
2828
foreign import ccall unsafe "LLVMAddEmitObjectPass" addEmitObjectPass
29-
:: ModuleRef -> CString -> IO CUInt
29+
:: ModuleRef -> CString -> IO CUInt
3030
#endif
3131

3232
foreign import ccall unsafe "LLVMDisablePrettyStackTrace" disablePrettyStackTrace

base/LLVM/Target/Native.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Foreign.C.Types
99
-- TARGET is expanded by CPP to the native target architecture.
1010
import LLVM.Target.TARGET
1111

12-
foreign import ccall unsafe "LLVMInitNativeTarget"
12+
foreign import ccall unsafe "LLVMInitNativeTarget"
1313
llvmInitializeNativeTarget :: IO CUInt
1414

1515
-- | Initialize jitter to the native target.

base/LLVM/Wrapper/Target.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import LLVM.FFI.Target
1616
, aBIAlignmentOfType
1717
, aBISizeOfType
1818
, pointerSize
19-
, preferredAlignmentOfGlobal
20-
, preferredAlignmentOfType
21-
, sizeOfTypeInBits
19+
, preferredAlignmentOfGlobal
20+
, preferredAlignmentOfType
21+
, sizeOfTypeInBits
2222
, storeSizeOfType
2323
, elementAtOffset
2424
, offsetOfElement

base/Setup.hs

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import Distribution.Text ( display )
2222
import Language.Haskell.TH
2323

2424
main = do
25-
let hooks = autoconfUserHooks { postConf = if os == "mingw32"
26-
then generateBuildInfo
25+
let hooks = autoconfUserHooks { postConf = if os == "mingw32"
26+
then generateBuildInfo
2727
else postConf autoconfUserHooks
2828
, instHook = installHookWithExtraGhciLibraries
2929
, regHook = regHookWithExtraGhciLibraries
@@ -82,7 +82,7 @@ regHookWithExtraGhciLibraries pkg_descr localbuildinfo _ flags =
8282
else setupMessage verbosity
8383
"Package contains no library to register:" (packageId pkg_descr)
8484
where verbosity = fromFlag (regVerbosity flags)
85-
85+
8686

8787

8888
{-
@@ -94,25 +94,25 @@ this is the workaround for conditional compilation if template haskell was more
9494
extractCLBI x=
9595
$(if cabalVersion >= Version [1,17,0] []
9696
then [| getComponentLocalBuildInfo 'x CLibName |]
97-
else [|
98-
let LocalBuildInfo { libraryConfig = Just clbi } = 'x
97+
else [|
98+
let LocalBuildInfo { libraryConfig = Just clbi } = 'x
9999
in clbi |]
100100
)
101101
102102
103103
-}
104104

105105
--- horrible hack to support cabal versions both above and below 1.17
106-
extractCLBI x=
107-
$(if cabalVersion >= Version [1,17,0] []
108-
then appE (appE ( varE $ mkName "getComponentLocalBuildInfo") ( varE 'x) ) (conE ( mkName "CLibName"))
109-
110-
else letE
111-
[valD (recP
112-
(mkName "LocalBuildInfo" )
113-
[fieldPat (mkName "libraryConfig")
114-
(conP (mkName "Just") [varP $ mkName "clbi"] ) ] )
115-
(normalB $ varE 'x) [] ]
106+
extractCLBI x=
107+
$(if cabalVersion >= Version [1,17,0] []
108+
then appE (appE ( varE $ mkName "getComponentLocalBuildInfo") ( varE 'x) ) (conE ( mkName "CLibName"))
109+
110+
else letE
111+
[valD (recP
112+
(mkName "LocalBuildInfo" )
113+
[fieldPat (mkName "libraryConfig")
114+
(conP (mkName "Just") [varP $ mkName "clbi"] ) ] )
115+
(normalB $ varE 'x) [] ]
116116
(varE $ mkName "clbi") )
117117

118118
register' :: PackageDescription -> LocalBuildInfo
@@ -155,5 +155,4 @@ register' pkg@PackageDescription { library = Just lib }
155155

156156
register' _ _ regFlags = notice verbosity "No package to register"
157157
where
158-
verbosity = fromFlag (regVerbosity regFlags)
159-
158+
verbosity = fromFlag (regVerbosity regFlags)

0 commit comments

Comments
 (0)