Revert 741978d727 and things that landed on top of it.
741978d727made clang produce output that's 2x as large at least in sanitizer builds. https://reviews.llvm.org/D83892#2470185 has a standalone repro. This reverts the following commits: Revert "[clang][cli] Port CodeGenOpts simple string flags to new option parsing system" This reverts commit95d3cc67ca. Revert "[clang][cli] Port LangOpts simple string based options to new option parsing system" This reverts commitaec2991d08. Revert "[clang][cli] Streamline MarshallingInfoFlag description" This reverts commit27b7d64688. Revert "[clang][cli] Port LangOpts option flags to new option parsing system" This reverts commit383778e217. Revert "[clang][cli] Port CodeGen option flags to new option parsing system" This reverts commit741978d727.
This commit is contained in:
@@ -30,8 +30,6 @@ namespace clang {
|
||||
/// Bitfields of CodeGenOptions, split out from CodeGenOptions to ensure
|
||||
/// that this large collection of bitfields is a trivial class type.
|
||||
class CodeGenOptionsBase {
|
||||
friend class CompilerInvocation;
|
||||
|
||||
public:
|
||||
#define CODEGENOPT(Name, Bits, Default) unsigned Name : Bits;
|
||||
#define ENUM_CODEGENOPT(Name, Type, Bits, Default)
|
||||
|
||||
@@ -86,6 +86,8 @@ def err_drv_invalid_thread_model_for_target : Error<
|
||||
"invalid thread model '%0' in '%1' for this target">;
|
||||
def err_drv_invalid_linker_name : Error<
|
||||
"invalid linker name in argument '%0'">;
|
||||
def err_drv_invalid_pgo_instrumentor : Error<
|
||||
"invalid PGO instrumentor in argument '%0'">;
|
||||
def err_drv_invalid_rtlib_name : Error<
|
||||
"invalid runtime library name in argument '%0'">;
|
||||
def err_drv_unsupported_rtlib_for_platform : Error<
|
||||
|
||||
@@ -108,6 +108,8 @@ def err_fe_action_not_available : Error<
|
||||
"action %0 not compiled in">;
|
||||
def err_fe_invalid_alignment : Error<
|
||||
"invalid value '%1' in '%0'; alignment must be a power of 2">;
|
||||
def err_fe_invalid_wchar_type
|
||||
: Error<"invalid wchar_t type '%0'; must be one of 'char', 'short', 'int'">;
|
||||
def err_fe_invalid_exception_model
|
||||
: Error<"invalid exception model '%select{none|dwarf|sjlj|arm|seh|wasm|aix}0' for target '%1'">;
|
||||
def warn_fe_concepts_ts_flag : Warning<
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -7,7 +7,7 @@
|
||||
//
|
||||
// PROF-INSTR-NONE-NOT: __llvm_prf
|
||||
//
|
||||
// PROF-INSTR-GARBAGE: invalid value 'garbage' in '-fprofile-instrument=garbage'
|
||||
// PROF-INSTR-GARBAGE: invalid PGO instrumentor in argument '-fprofile-instrument=garbage'
|
||||
|
||||
int main(void) {
|
||||
return 0;
|
||||
|
||||
@@ -179,12 +179,6 @@ class MarshallingInfoFlag<code keypath, code defaultvalue = "false">
|
||||
code Denormalizer = "denormalizeSimpleFlag";
|
||||
}
|
||||
|
||||
class MarshallingInfoNegativeFlag<code keypath, code defaultvalue = "true">
|
||||
: MarshallingInfo<keypath, defaultvalue> {
|
||||
code Normalizer = "normalizeSimpleNegativeFlag";
|
||||
code Denormalizer = "denormalizeSimpleFlag";
|
||||
}
|
||||
|
||||
class MarshallingInfoBitfieldFlag<code keypath, code value>
|
||||
: MarshallingInfoFlag<keypath, "0u"> {
|
||||
code Normalizer = "makeFlagToValueNormalizer("#value#")";
|
||||
@@ -202,6 +196,9 @@ class MarshallingInfoBooleanFlag<code keypath, code defaultvalue, code value, co
|
||||
|
||||
// Mixins for additional marshalling attributes.
|
||||
|
||||
class IsNegative {
|
||||
code Normalizer = "normalizeSimpleNegativeFlag";
|
||||
}
|
||||
class AlwaysEmit { bit ShouldAlwaysEmit = true; }
|
||||
class Normalizer<code normalizer> { code Normalizer = normalizer; }
|
||||
class Denormalizer<code denormalizer> { code Denormalizer = denormalizer; }
|
||||
|
||||
Reference in New Issue
Block a user