summaryrefslogtreecommitdiff
path: root/testsuite/tests/hiefile
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-07-29 19:34:57 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-07 12:01:46 -0400
commitb2577081528fe36facf5153bed256fe838a74ae6 (patch)
treec0ce42d462656bc3dae6543c5239a8e56a5e2217 /testsuite/tests/hiefile
parent825c108bd26f20accf1eaef2ba652a2ee12924bb (diff)
downloadhaskell-b2577081528fe36facf5153bed256fe838a74ae6.tar.gz
Refactor, document, and optimize LLVM configuration loading
As described in the new Note [LLVM Configuration] in SysTools, we now load llvm-targets and llvm-passes lazily to avoid the overhead of doing so when -fllvm isn't used (also known as "the common case"). Noticed in #17003. Metric Decrease: T12234 T12150
Diffstat (limited to 'testsuite/tests/hiefile')
-rw-r--r--testsuite/tests/hiefile/should_run/PatTypes.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/hiefile/should_run/PatTypes.hs b/testsuite/tests/hiefile/should_run/PatTypes.hs
index af5c42defa..7948c43473 100644
--- a/testsuite/tests/hiefile/should_run/PatTypes.hs
+++ b/testsuite/tests/hiefile/should_run/PatTypes.hs
@@ -40,7 +40,7 @@ makeNc = do
dynFlagsForPrinting :: String -> IO DynFlags
dynFlagsForPrinting libdir = do
systemSettings <- initSysTools libdir
- return $ defaultDynFlags systemSettings ([], [])
+ return $ defaultDynFlags systemSettings (LlvmConfig [] [])
selectPoint :: HieFile -> (Int,Int) -> HieAST Int
selectPoint hf (sl,sc) = case M.toList (getAsts $ hie_asts hf) of