Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Frontend/CompilerInvocation.cpp
Show First 20 Lines • Show All 4,064 Lines • ▼ Show 20 Lines | if (!SeedFile.is_open()) | ||||
<< A->getValue(0); | << A->getValue(0); | ||||
std::getline(SeedFile, Opts.RandstructSeed); | std::getline(SeedFile, Opts.RandstructSeed); | ||||
} | } | ||||
if (const Arg *A = Args.getLastArg(OPT_frandomize_layout_seed_EQ)) | if (const Arg *A = Args.getLastArg(OPT_frandomize_layout_seed_EQ)) | ||||
Opts.RandstructSeed = A->getValue(0); | Opts.RandstructSeed = A->getValue(0); | ||||
// TODO: If there is no provided sized-deallocation option, we disable the | |||||
// default behavior for Apple targets currently. This may be changed when we | |||||
// are able to enable reliance on sized deallocation functions automatically | |||||
// whenever the deployment target is greater than or equal to required | |||||
// versions. | |||||
if (!Args.getLastArg(options::OPT_fsized_deallocation, | |||||
options::OPT_fno_sized_deallocation)) | |||||
Opts.SizedDeallocation = Opts.SizedDeallocation && | |||||
T.getVendor() != llvm::Triple::VendorType::Apple; | |||||
ldionne: Why not implement it correctly from the start? @arphaman @ahatanak What would be the right… | |||||
return Diags.getNumErrors() == NumErrorsBefore; | return Diags.getNumErrors() == NumErrorsBefore; | ||||
} | } | ||||
static bool isStrictlyPreprocessorAction(frontend::ActionKind Action) { | static bool isStrictlyPreprocessorAction(frontend::ActionKind Action) { | ||||
switch (Action) { | switch (Action) { | ||||
case frontend::ASTDeclList: | case frontend::ASTDeclList: | ||||
case frontend::ASTDump: | case frontend::ASTDump: | ||||
case frontend::ASTPrint: | case frontend::ASTPrint: | ||||
▲ Show 20 Lines • Show All 575 Lines • Show Last 20 Lines |
Why not implement it correctly from the start? @arphaman @ahatanak What would be the right incantation to enable sized deallocation starting in macOS 10.12, iOS 10.0, watchOS 3.0, and tvOS 10.0?