Skip to content

Commit

Permalink
patmos: Make sure to turn on internalizing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeuneS2 committed Jan 19, 2016
1 parent 38f5f07 commit 73474a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Driver/Tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4985,6 +4985,10 @@ bool patmos::PatmosBaseTool::ConstructOptJob(const Tool &Creator,
if (DisableInternalize) {
// works even if in front of -std-link-opts, which adds -internalize
OptArgs.push_back("-disable-internalize");
} else {
// for some reason, we need to add this manually
OptArgs.push_back("-internalize");
OptArgs.push_back("-globaldce");
}

// @see the note in Clang::AddPatmosTargetArgs()
Expand Down

0 comments on commit 73474a8

Please sign in to comment.