Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Glasgow Haskell Compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
98091a84
Commit
98091a84
authored
Nov 22, 2011
by
dterei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add '-dno-llvm-mangler' flag for debugging purposes
parent
af2b9ab5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
compiler/main/DriverPipeline.hs
compiler/main/DriverPipeline.hs
+8
-2
compiler/main/DynFlags.hs
compiler/main/DynFlags.hs
+2
-0
No files found.
compiler/main/DriverPipeline.hs
View file @
98091a84
...
...
@@ -1338,7 +1338,13 @@ runPhase LlvmLlc input_fn dflags
|
not
opt_Static
=
"dynamic-no-pic"
|
otherwise
=
"static"
output_fn
<-
phaseOutputFilename
LlvmMangle
-- hidden debugging flag '-dno-llvm-mangler' to skip mangling
let
next_phase
=
case
dopt
Opt_NoLlvmMangler
dflags
of
False
->
LlvmMangle
True
|
dopt
Opt_SplitObjs
dflags
->
Splitter
True
->
As
output_fn
<-
phaseOutputFilename
next_phase
io
$
SysTools
.
runLlvmLlc
dflags
([
SysTools
.
Option
(
llvmOpts
!!
opt_lvl
),
...
...
@@ -1348,7 +1354,7 @@ runPhase LlvmLlc input_fn dflags
++
map
SysTools
.
Option
lc_opts
++
map
SysTools
.
Option
fpOpts
)
return
(
LlvmMangl
e
,
output_fn
)
return
(
next_phas
e
,
output_fn
)
where
-- Bug in LLVM at O3 on OSX.
llvmOpts
=
if
platformOS
(
targetPlatform
dflags
)
==
OSDarwin
...
...
compiler/main/DynFlags.hs
View file @
98091a84
...
...
@@ -220,6 +220,7 @@ data DynFlag
|
Opt_DoStgLinting
|
Opt_DoCmmLinting
|
Opt_DoAsmLinting
|
Opt_NoLlvmMangler
|
Opt_WarnIsError
-- -Werror; makes warnings fatal
...
...
@@ -1573,6 +1574,7 @@ dynamic_flags = [
,
Flag
"dshow-passes"
(
NoArg
(
do
forceRecompile
setVerbosity
$
Just
2
))
,
Flag
"dfaststring-stats"
(
NoArg
(
setDynFlag
Opt_D_faststring_stats
))
,
Flag
"dno-llvm-mangler"
(
NoArg
(
setDynFlag
Opt_NoLlvmMangler
))
------ Machine dependant (-m<blah>) stuff ---------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment