Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions bolt/lib/Passes/PLTCall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,17 @@ namespace opts {

extern cl::OptionCategory BoltOptCategory;

static cl::opt<bolt::PLTCall::OptType>
PLT("plt", cl::desc("optimize PLT calls (requires linking with -znow)"),
cl::init(bolt::PLTCall::OT_NONE),
cl::values(clEnumValN(bolt::PLTCall::OT_NONE, "none",
"do not optimize PLT calls"),
clEnumValN(bolt::PLTCall::OT_HOT, "hot",
"optimize executed (hot) PLT calls"),
clEnumValN(bolt::PLTCall::OT_ALL, "all",
"optimize all PLT calls")),
cl::ZeroOrMore, cl::cat(BoltOptCategory));
static cl::opt<bolt::PLTCall::OptType> PLT(
"plt",
cl::desc(
"optimize PLT calls (sets DF_BIND_NOW/DF_1_NOW in the output binary)"),
cl::init(bolt::PLTCall::OT_NONE),
cl::values(
clEnumValN(bolt::PLTCall::OT_NONE, "none", "do not optimize PLT calls"),
clEnumValN(bolt::PLTCall::OT_HOT, "hot",
"optimize executed (hot) PLT calls"),
clEnumValN(bolt::PLTCall::OT_ALL, "all", "optimize all PLT calls")),
cl::ZeroOrMore, cl::cat(BoltOptCategory));
}

namespace llvm {
Expand Down
Loading